Unbinds and deletes a tag from a resource.
Debugging
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 ID of the region where the resource is located. |
ResourceId.N | RepeatList | Yes | alikafka_post-cn-v0h1fgs2**** |
The ID of the resource whose tag you want to delete. The resource ID follows these rules:
For example, the resources from which the tag will be unbound include the alikafka_post-cn-v0h1fgs2xxxx instance, the test-topic topic, and the test-consumer-group consumer group. In this case, their resource IDs are alikafka_post-cn-v0h1fgs2xxxx, Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-topic, and Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-consumer-group, respectively. |
ResourceType | String | Yes | instance |
The type of the resource. Valid values:
|
TagKey.N | RepeatList | No | FinanceDept |
The key of the resource tag.
|
All | Boolean | No | false |
Specifies whether to delete all the tags bound to the resource. This parameter takes effect only when the TagKey.N parameter is not specified. 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=alikafka_post-cn-v0h1fgs2****
&ResourceType=instance
&<Common request parameters>
Sample success responses
XML
format
<UntagResourcesResponse>
<RequestId>C46FF5A8-C5F0-4024-8262-B16B639225A0</RequestId>
</UntagResourcesResponse>
JSON
format
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"
}
Error codes
For a list of error codes, visit the API Error Center.