Removes one or more tags from one or more resources.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | UntagResources |
The operation that you want to perform. Set the value to UntagResources. |
| ResourceId.N | RepeatList | Yes | 97fe9321a476d0861f624d3f738dcc38 |
The resource ID, which is a zone ID. The number N in the parameter name is used to identify different IDs. You can specify 1 to 50 IDs. |
| ResourceType | String | Yes | ZONE |
The resource type. Valid value: ZONE. |
| Lang | String | No | en |
The language of the values of specific response parameters. Valid values: en, zh, and ja. |
| All | Boolean | No | true |
Specifies whether to remove all tags from the specified one or more resources. This parameter takes effect only if the TagKey.N parameter is not specified. Valid values:
|
| TagKey.N | RepeatList | No | env |
The key of the tag to be removed. The number N in the parameter name is used to identify different tags. You can specify 1 to 20 keys. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 75446CC1-FC9A-4595-8D96-089D73D7A63D |
The ID of the request. |
Examples
Sample request
http(s)://pvtz.aliyuncs.com/?Action=UntagResources
&ResourceId.1=zoneid
&ResourceType=ZONE
&<Common request parameters>Sample success responses
XML format
<RequestId>75446CC1-FC9A-4595-8D96-089D73D7A63D</RequestId>JSON format
{
"RequestId": "75446CC1-FC9A-4595-8D96-089D73D7A63D"
}Error codes
For a list of error codes, visit the API Error Center.