Deletes tags from instances in a resource group.
Try it now
Test
RAM authorization
Request syntax
DELETE /api/v2/resources/{ClusterId}/{ResourceId}/label HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region ID of the resource group. |
cn-shanghai |
| ResourceId |
string |
Yes |
The ID of the resource group. For information about how to query the resource group ID, see ListResources. |
eas-r-h7lcw24dyqztwxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceIds |
array |
No |
The ID of the instance. |
|
|
string |
No |
The instance ID. |
eas-i-xxxxx |
|
| AllInstances |
boolean |
No |
Specifies whether to delete the tags from all instances in the resource group. If this parameter is set to `true`, the `InstanceIds` parameter does not take effect. |
|
Keys
deprecated
|
array |
No |
The tags to delete. This parameter is deprecated. Use `LabelKeys` instead. |
|
|
string |
No |
The key of the tag to delete. |
key |
|
| LabelKeys |
array |
No |
The tags to delete. |
|
|
string |
No |
The key of the tag to delete. |
key |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82******** |
| Message |
string |
The message returned for the request. |
success |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82********",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.