If you no longer need the labels (key-value pairs) of a cluster, you can call the UntagResources operation to delete the labels.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:UntagResources |
delete |
*All Resource
|
None | None |
Request syntax
DELETE /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| region_id |
string |
Yes |
The region ID of the resources. |
cn-hangzhou |
| resource_ids |
array |
Yes |
The list of resource IDs. |
|
|
string |
No |
The resource ID. You can specify up to 50 resource IDs. |
c1a7bb282fc0d48b593*** |
|
| resource_type |
string |
Yes |
The type of resource. Set the value to |
CLUSTER |
| tag_keys |
array |
Yes |
The list of keys of the labels that you want to remove. |
|
|
string |
No |
The key of the label that you want to remove. You can specify up to 20 keys. |
TestKey1 |
|
| all |
boolean |
No |
Specifies whether to remove all custom labels. This parameter takes effect only when
|
true |
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.