Remove tags from resources.
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 | Association operation |
---|---|---|---|---|
cen:UntagResources | WRITE |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceType | string | Yes | The resource type. Valid value: Cen: Cloud Enterprise Network (CEN) instance BandwidthPackage: bandwidth plan TransitRouter: transit router TransitRouterVpcAttachment: virtual private cloud (VPC) connection TransitRouterVbrAttachment: virtual border router (VBR) connection TransitRouterPeerAttachment: inter-region connection TransitRouterVpnAttachment: VPN connection TransitRouterRouteTable: route table Flowlog: flow log TransitRouterMulticastDomain: multicast domain | cen |
All | boolean | No | Specifies whether to remove all tags. Valid values:
NoteThis parameter is valid only when the TagKey.N parameter is empty. | false |
ResourceId | array | Yes | The ID of the resource. Valid values of N: 1 to 50. | |
string | No | The ID of the resource. Valid values of N: 1 to 50. | cen-7qthudw0ll6jmc**** | |
TagKey | array | No | The tag key. The tag key cannot exceed 64 characters in length, and cannot start with If multiple tag keys are specified, the logical relation among these tag keys is AND. Valid values of N: 1 to 20. | |
string | No | The tag key. The tag key cannot exceed 64 characters in length, and cannot start with If multiple tag keys are specified, the logical relation among these tag keys is AND. Valid values of N: 1 to 20. | Name | |
RegionId | string | No | The ID of the region where the resource is deployed. You can ignore this parameter if ResourceType is set to Cen or BandwidthPackage. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0\t"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidTagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
400 | InvalidTagValue | The tag values are not valid. | The error message returned because the specified tag value is invalid. |
400 | MissingParam | %s | - |
400 | InvalidInstanceType.NotFound | The instance type is not found | The error message returned because the specified instance type does not exist. |
400 | InvalidInstanceIds.NotFound | The instanceIds are not found | The error message returned because the specified instance does not exist. |
400 | Forbidden.TagKeys | The request do not allow to operate the tag keys | The error message returned because you cannot manage the specified tag key. |
400 | QuotaExceeded.TagNum | Custom Tags quota exceeded | The error message returned because the number of tags has reached the upper limit. |
400 | InvalidTagScope.NotFound | The tag scope is not found | The error message returned because the specified tag scope is invalid. |
400 | Forbidden.NotAllowedCategary | The System tag is not valid | The error message returned because you cannot configure system tags. |
400 | Forbidden.TagKeys | The request does not allow operate this tagkeys | The error message returned because you cannot manage the specified tag key. |
400 | SizeLimitExceeded.ResourceIdNum | The ResourceIds parameter's number is exceed , Valid : 20 | - |
400 | IllegalParam.Region | The specified region is invalid. | The error message returned because the specified region is invalid. |
400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2022-11-16 | The error codes of the API operation change.,The input parameters of the API operation change. | |||||||||
| ||||||||||
2022-11-15 | The error codes of the API operation change.,The input parameters of the API operation change. | |||||||||
|