UntagResources
Removes tags from one or more resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:UntagResources |
update |
*CenInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Valid values: Cen: Cloud Enterprise Network (CEN) instance. BandwidthPackage: bandwidth plan instance. TransitRouter: transit router instance. TransitRouterVpcAttachment: VPC connection instance. TransitRouterVbrAttachment: VBR connection instance. TransitRouterPeerAttachment: cross-region connection instance. TransitRouterVpnAttachment: VPN connection instance. TransitRouterRouteTable: route table instance. Flowlog: flow log instance. TransitRouterMulticastDomain: multicast domain instance. |
cen |
| All |
boolean |
No |
Specifies whether to remove all tags. Valid values:
Note
This parameter takes effect only when TagKey.N is left empty. |
false |
| ResourceId |
array |
Yes |
The resource ID. N ranges from 1 to 50. |
cen-7qthudw0ll6jmc**** |
|
string |
No |
The resource ID. N ranges from 1 to 50. |
cen-7qthudw0ll6jmc**** |
|
| TagKey |
array |
No |
The tag key. A tag key can be up to 64 characters in length. It cannot start with If you specify multiple tag keys, they are evaluated by using the OR logical operator. N ranges from 1 to 20. |
FinanceDept |
|
string |
No |
The tag key. A tag key can be up to 64 characters in length. It cannot start with If you specify multiple tag keys, they are evaluated by using the OR logical operator. N ranges from 1 to 20. |
Name |
|
| RegionId |
string |
No |
The region ID of the resource. This parameter is not required when the resource type is Cen or BandwidthPackage. This parameter is required for other resource types. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
C46FF5A8-C5F0-4024-8262-B16B639225A0 |
Examples
Success response
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 | SizeLimitExceeded.ResourceIdNum | The ResourceIds parameter's number is exceed , Valid : 20 | |
| 400 | IllegalParam.Region | 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. |
| 400 | InvalidParameter.TagKeyOrAll | The specified parameter TagKey or All is invalid. | The specified parameter TagKey or All is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.