ModifyResourceTags
1. API Description
This API is used to modify tags of resources in batches.
2. Input Parameters
The following request parameter list only provides API request parameters.
resourceUuid
Yes
String
Associated resource ID.
replaceTags
No
Array of Tag
List of tags to be modified, including tag keys and tag values.
deleteTagKeys
No
Array of String
List of tags to be removed, including tag keys.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Modify tags of resources in batches.
POST /api/v2/zrm HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: ModifyResourceTags
<Common Request Params>
Request:
{
"resourceUuid": "resourceUuid_9a14edb2e71e",
"replaceTags": [
{
"key": "key_f2eaf69f2767",
"value": "value_7f72c5d7d053"
}
],
"deleteTagKeys": [
"deleteTagKeys_3efdc3f0f422"
]
}
Response:
{
"requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3",
"response": {
"requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3"
}
}5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
INVALID_RESOURCE_CAN_NOT_BOUND
Resources cannot be associated.
404
INVALID_RESOURCE_NOT_FOUND
Resources do not exist.
Last updated