You can add labels in key-value pairs to clusters. This allows cluster developers or O\\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the ModifyClusterTags operation to modify the labels of a cluster.
Operation description
该 API 为全量更新,使用时请注意将完整的目标 Tags 设定为入参,避免丢失已有 Tags。如需增量更新,请使用 TagResources 接口为集群绑定标签。
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ModifyClusterTags |
update |
*Cluster
|
None | None |
Request syntax
POST /clusters/{ClusterId}/tags HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster. |
c106f377e16f34eb1808d6b9362c9**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
array |
No |
The data of the tags that you want to modify. |
|
| tag |
No |
The list of tags. |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.