Removes tags from resources.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| alb:UnTagResources | delete | LoadBalancer acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}ServerGroup acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}Acl acs:alb:{#regionId}:{#accountId}:acl/{#AclId}SecurityPolicy acs:alb:{#regionId}:{#accountId}:securitypolicy/{#SecurityPolicyId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ResourceType | string | Yes | The type of the resource. Valid values:
| loadbalancer |
| ResourceId | array | Yes | The IDs of the resources from which you want to remove tags. | |
| string | Yes | The ID of the resource from which you want to remove tags. | d-2ze1ot4ah7xjyv0d**** | |
| Tag | array<object> | No | The tags that you want to remove. | test |
| object | No | The tag that you want to remove. | ||
| Key | string | No | The key of the tag that you want to remove. The tag key can be up to 128 characters in length, and cannot contain | env |
| Value | string | No | The value of the tag that you want to remove. The tag value can be up to 128 characters in length, and cannot contain | product |
| TagKey | array | No | The keys of the tags that you want to remove. | |
| string | No | The tag key. The tag key can be up to 128 characters in length, and cannot contain | env | |
| All | boolean | No | Specifies whether to remove all tags from the specified resource. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 404 | ResourceNotFound.Acl | The specified resource %s is not found. | - |
| 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.SecurityPolicy | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.ServerGroup | The specified resource %s is not found. | - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
