You can call the UntagResources operation to remove the labels of specified Container Service for Kubernetes (ACK) clusters.
Debugging
Request syntax
DELETE /tags?region_id=String&resource_ids=["String"]&resource_type=String&tag_keys=["String"] HTTP/1.1
Content-Type:application/json
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| region_id | String | Yes | cn-hangzhou | The ID of the region to which the resources that you want to manage belong. |
| resource_ids | Array of String | Yes | c1a7bb282fc0d48b593*** | The IDs of the resources that you want to manage. You can specify up to 50 resources. |
| resource_type | String | Yes | CLUSTER | The type of the resources that you want to manage. Set the value to |
| tag_keys | Array of String | Yes | TestKey1 | The keys of the labels that you want to remove. You can specify up to 20 keys. |
| all | Boolean | No | true | Specifies whether to remove all custom labels. This parameter takes effect only when |
Response syntax
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "String"
}
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 2D69A58F-345C-4FDE-88E4-BF51894XXXXX | The ID of the request. |
Examples
Sample requests
DELETE /tags?region_id=cn-hangzhou&resource_ids=["c1a7bb282fc0d48b593***"]&resource_type=CLUSTER&tag_keys=["TestKey1"] HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UntagResourcesResponse>
<RequestId>2D69A58F-345C-4FDE-88E4-BF51894XXXXX</RequestId>
</UntagResourcesResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "2D69A58F-345C-4FDE-88E4-BF51894XXXXX"
}
Error codes
For a list of error codes, see Service error codes.