Overview
Creating instance tags
Description
Create instance tags.
Request Parameters
Parameter Name |
Requiredness |
Type |
Limitation |
Description |
instanceNoList |
Yes |
List |
Repeat not allowed |
instance No list for creating tags |
instanceTagList.tagKey |
Yes |
String |
|
instanceTagList. tag key |
instanceTagList.tagValue |
Yes |
String |
|
instanceTagList. tag value |
Response Data Type
InstanceTagList extends CommonResponse |
private Integer totalRows; |
private List instanceTagList = new ArrayList(); |
InstanceTag |
private String instanceNo; |
private CommonCode instanceType; |
private String tagKey; |
private String tagValue; |
Examples
Request
ncloud server createInstanceTags --instanceNoList 712342 --instanceTagList "tagKey=penguin, tagValue=999999"
Response
{
"createInstanceTagsResponse": {
"requestId": "2f77f4b0-86c8-49d9-8bf9-0c4988f51a47",
"returnCode": "0",
"returnMessage": "success",
"totalRows": 1,
"instanceTagList": [
{
"instanceNo": "712342",
"instanceType": {
"code": "SVR",
"codeName": "Server"
},
"tagKey": "penguin2",
"tagValue": "aaaa"
}
]
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<createInstanceTagsResponse>
<requestId>2f77f4b0-86c8-49d9-8bf9-0c4988f51a47</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<instanceTagList>
<instanceNo>712342</instanceNo>
<instanceType>
<code>SVR</code>
<codeName>Server</codeName>
</instanceType>
<tagKey>penguin2</tagKey>
<tagValue>aaaa</tagValue>
</instanceTagList>
</createInstanceTagsResponse>