Unbinds and deletes tags from a resource.

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.

ResourceId.N RepeatList Yes TopicA

The ID of the resource from which you want to unbind tags.

ResourceType String Yes TOPIC

The type of the resource. The value is an enumerated value. Valid values:

  • INSTANCE
  • TOPIC
  • GROUP
InstanceId String No MQ_INST_111111111111_DOxxxxxx

To unbind tags from a topic or group ID, you must specify this parameter.

TagKey.N RepeatList No CartService

The key of tag N to be unbound from the resource.

  • Valid values of N: 1 to 20.
  • The tag key cannot be an empty string.
  • The tag key can be up to 128 characters in length. It cannot start with aliyun or acs: and cannot contain http:// or https://.
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. Default value: false.

Response parameters

Parameter Type Example Description
RequestId String 19780F2E-7841-4E0F-A5D9-C64A05301A2F

The ID of the request. This is a common parameter.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UntagResources
&ResourceId.1=TopicA
&ResourceType=TOPIC
&<Common request parameters>

Sample success responses

XML format

<UntagResourcesResponse>
  <RequestId>19780F2E-7841-4E0F-A5D9-C64A05301A2F</RequestId>
</UntagResourcesResponse>

JSON format

{"RequestId":"19780F2E-7841-4E0F-A5D9-C64A05301A2F"}

Error codes

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