Adds one or more tags to one or more resources.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | TagResources |
The operation that you want to perform. Set the value to TagResources. |
| 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. |
| Lang | String | No | en |
The language of the values of specific response parameters. Valid values: zh, en, and ja. |
| OverWrite | Boolean | No | true |
Specifies whether to overwrite the original tag list of each specific resource.
|
| Tag.N.Key | String | No | env |
The key of the tag. The number N in the parameter name is used to identify different tags. |
| Tag.N.Value | String | No | daily |
The value of the tag. The number N in the parameter name is used to identify different tags. |
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=TagResources
&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.