Binds tags to a cluster. Adding tag key-value pairs allows cluster developers and O&M engineers to classify and manage clusters more flexibly, and better supports requirements such as monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to bind tags to a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:TagResources |
update |
*All Resource
|
None | None |
Request syntax
PUT /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| resource_ids |
array |
Yes |
The list of resource IDs. You can add up to 50 resource IDs. |
|
|
string |
No |
The resource ID. If the resource type is |
c1a7bb282fc0d48b**** |
|
| resource_type |
string |
Yes |
The resource type. Valid values:
|
CLUSTER |
| region_id |
string |
Yes |
The region ID of the resource. |
cn-hangzhou |
| tags |
array |
Yes |
The tag key-value pairs of the resource. You can add up to 20 tag key-value pairs. Take note of the following items:
|
|
| tag |
No |
The resource tag. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
2D69A58F-345C-4FDE-88E4-BF51894****** |
Examples
Success response
JSON format
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF51894******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.