Removes tags from resources.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | UntagResources |
The operation that you want to perform. Set the value to UntagResources. |
ResourceId.N | RepeatList | Yes | cen-7qthudw0ll6jmc**** |
The ID of the resource. Valid values of N: 1 to 50. |
ResourceType | String | Yes | cen |
The type of the resource. Set the value to cen. |
TagKey.N | RepeatList | No | FinanceDept |
The key of the tag. The key can be at most 64 characters in length, and cannot start with If multiple tag keys are specified, the logical relation among these tag keys is AND. Valid values of N: 1 to 20. |
All | Boolean | No | false |
Specifies whether to remove all tags. Valid values:
Note This parameter takes effect only when the TagKey.N parameter is not specified.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C46FF5A8-C5F0-4024-8262-B16B639225A0 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UntagResources
&ResourceId.1=cen-7qthudw0ll6jmc****
&ResourceType=cen
&<Common request parameters>
Sample success responses
XML
format
<UntagResourcesResponse>
<RequestId>C46FF5A8-C5F0-4024-8262-B16B639225A0</RequestId>
</UntagResourcesResponse>
JSON
format
{
"RequestId":"C46FF5A8-C5F0-4024-8262-B16B639225A0"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidTagKey | The tag keys are not valid. | The error message returned because the key of the tag is invalid. |
For a list of error codes, visit the API Error Center.