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:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is 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 |
---|---|---|---|---|
slb:UntagResources | WRITE |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the Server Load Balancer (SLB) instance is created. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ResourceType | string | Yes | The type of the resource. Valid values:
| instance |
All | boolean | No | Specifies whether to remove all tags from the specified one or more resources. This parameter takes effect only if the TagKey.N parameter is not set. Valid values: true and false. | true |
ResourceId | array | Yes | The ID of the resource. Valid values of N: 1 to 20. | |
string | Yes | The resource ID. | lb-bp16qjewdsunr41m1**** | |
TagKey | array | No | The tag value. Valid values of N: 1 to 20. The tag value can be up to 128 characters in length and cannot contain Note
If you do not set TagKey, all tags of the specified instance are removed.
| |
string | No | The keys of the tags that you want to remove. | test_slb_yaochi_tag_key-4 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | TagTypeNotSame | The category of tags in the same request must be the same. |
400 | ResourceNotExist | %s. |
400 | DeniedForNoneTagCreator | %s. |
400 | DeniedForScopeNotEqual | %s. |
400 | InvalidParam.ResourceType | The specified ResourceType is invalid. |
400 | InvalidParam.TagKey | The specified TagKey is invalid. |
400 | InvalidParam.TagValue | The specified TagValue is invalid. |
400 | InvalidParam.TagKeyOrValue | The specified TagKey or TagValue is invalid. |
400 | InvalidParam.TagOwnerUid | The specified TagOwnerUid is invalid. |
400 | InvalidParam.TagOwnerBid | The specified TagOwnerBid is invalid. |
400 | MissingParam.TagOwnerUid | The parameter TagOwnerUid is required. |
400 | MissingParam.TagOwnerBid | The parameter TagOwnerBid is required. |
400 | InvalidParameter.RegionId | The specified RegionId does not exist. |
400 | MissingParam.ResourceId | The parameter ResourceId is required. |
400 | DeniedForOperateCustomTag | %s. |
400 | Duplicate.TagKey | The param TagKey has duplicate value. |
400 | SizeLimitExceeded.ResourceId | The maximum size of ResourceId is exceeded. |
400 | SizeLimitExceeded.TagKey | The maximum size of TagKey is exceeded. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-12-13 | The Error code has changed | see changesets | ||||
|