createInstanceTags

Prev Next

Overview

Create an instance tag.

Request

Request parameters

Parameter name Required Type Restrictions Description
instanceNoList.N Yes List<String> It can't be duplicated. - List of server instance numbers for which instance tags will be created.
Tag settings are only available on servers.
serverInstanceNo can be obtained through the getServerInstanceList action.
e.g., instanceNoList.1=1088217
instanceTagList.N.tagKey Yes String - Tag key to create.
e.g., instanceTagList.1.tagKey=tag1
instanceTagList.N.tagValue Yes String - Tag value to create.
e.g., instanceTagList.1.tagValue=dolphins
responseFormatType No String - Format type of the response result
Options: xml | json
Default: xml

Response

Response body

Examples

Request example

GET {SERVER_API_URL}/createInstanceTags?instanceNoList.1=1088217
&instanceTagList.1.tagKey=tag1
&instanceTagList.1.tagValue=dolphins

Response example

<createInstanceTagsResponse>
  <requestId>7d7bf862-31a4-4b7e-b3ca-d8128f3936f3</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <instanceTagList>
    <instanceTag>
      <instanceNo>1088217</instanceNo>
      <instanceType>
        <code>SVR</code>
        <codeName>Server</codeName>
      </instanceType>
      <tagKey>tag1</tagKey>
      <tagValue>dolphins</tagValue>
    </instanceTag>
  </instanceTagList>
</createInstanceTagsResponse>