Removes tags from the specified ECS resources.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No UntagResources

The operation that you want to perform. Set the value to UntagResources.

ResourceId.N RepeatList Yes cen-7qthudw0ll6jmc****

The resource ID. Valid values of N: 1 to 50.

ResourceType String Yes cen

The resource type. Set the value to cen.

TagKey.N RepeatList No FinanceDept

The tag key of the resource. Valid values of N: 1 to 20. This parameter value can be an empty string. It can be at most 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

All Boolean No false

Specifies whether to remove all tags. Valid values:

  • true : yes
  • false: no (default value)
Note This parameter is valid only when the TagKey.N parameter is not set.

Response parameters

Parameter Type Example Description
RequestId String C46FF5A8-C5F0-4024-8262-B16B639225A0

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=UntagResources
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

HttpCode Error code Error message Description
400 InvalidTagKey The tag keys are not valid. The error message returned because the value of the tag key is invalid.

For a list of error codes, visit the API Error Center.