You can call this operation to unbind and delete tags from specified ROS resource list.

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 Yes UntagResources

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

RegionId String Yes cn-hangzhou

The region ID of the tag. You can call the DescribeRegions operation to query the most recent region list.

ResourceId.N RepeatList Yes i-bp67acfmxazb4ph***

The IDs of N resources. Valid values of N: 1 to 50.

ResourceType String Yes Stack

The type of the resource. Valid values:

  • stack
  • template: My template
TagKey.N RepeatList No FinanceDept

The value of tag N of the resource. Valid values of N: 1 to 20.

All Boolean No false

Specifies whether to delete all the tags bound to the resource. This parameter only takes effect when the TagKey.N parameter is not specified in the request. Default value: false.

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
&RegionId=cn-hangzhou
&ResourceId.1=i-bp67acfmxazb4ph environment variables *
&ResourceType=stack
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

For more information about error codes, visit API Error Center.

HTTP status code

Error code

Error message

Description

400

InvalidParameter

The specified parameter ResourceType is invalid, {reason}.

The error message returned because the specified value of the resource type parameter is incorrect. reason indicates the specific reason.

400

InvalidParameter

The specified parameter ResourceIds is invalid, {reason}.

The error message returned because the specified resource ID does not exist or an error occurs during resource verification. reason indicates the specific reason.

400

InvalidParameter

The specified parameter Tags is invalid, {reason}.

The error message returned because the specified value of the Tags parameter is incorrect. reason indicates the specific reason.

400

Duplicate.TagKey

The Tag.N.Key contain duplicate key.

The error message returned because the specified tag key already exists. Tag keys must be unique.