Removes tags from the specified ECS resources.

Debugging

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.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UntagResources

正常返回示例

XML 格式

<UntagResourcesResponse> <RequestId>C46FF5A8-C5F0-4024-8262-B16B639225A0</RequestId> </UntagResourcesResponse>

JSON 格式

{ "RequestId":"C46FF5A8-C5F0-4024-8262-B16B639225A0" }

错误码

HttpCode 错误码 错误信息 描述
400 InvalidTagKey The tag keys are not valid. tag的key值不合法

访问错误中心查看更多错误码。