You can call the TagResources operation to add or modify tags for one or more zones in a batch.
Operation description
Limits
You can add tags only to zone resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:TagResources |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en |
en |
| ResourceType |
string |
Yes |
The resource type. The value must be ZONE. |
ZONE |
| OverWrite |
boolean |
No |
Specifies whether to modify the tag list. Valid values:
|
true |
| ResourceId |
array |
Yes |
The list of resource IDs. These are the IDs of the zones. You can specify up to 50 IDs. |
97fe9321a476d0861f624d3f738dcc38 |
|
string |
No |
A zone ID. |
97fe9321a476d0861f624d3f738d**** |
|
| Tag |
array<object> |
Yes |
The list of tags. |
|
|
object |
No |
A tag. |
||
| Key |
string |
No |
The tag key. |
env |
| Value |
string |
No |
The tag value. |
daily |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
75446CC1-FC9A-4595-8D96-089D73D7A63D |
Examples
Success response
JSON format
{
"RequestId": "75446CC1-FC9A-4595-8D96-089D73D7A63D"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.