You can call UntagResources to unbind tags from specified EMR clusters. After a tag is unbound, the tag is automatically deleted if it is not bound to any other resources.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String No UntagResources

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to UntagResources.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions Interface to view the latest list of Alibaba Cloud regions.

ResourceId.N RepeatList Yes C-3652B95F65967***

The ID of the EMR cluster. You can call the ListClusters You can call this operation to view the ID of a cluster. Valid values of N: 1 to 50.

ResourceType String Yes cluster

The type of the resource. The EMR cluster is cluster.

TagKey.N RepeatList No DevNianmin

The key of Tag n of the EMR cluster. Valid values of N: 1 to 20.

All Boolean No false

Specifies whether to unbind all tags from the resource. This parameter takes effect only when the TagKey.N parameter is not specified. Valid values:

  • true
  • 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=C-3652B95F65967*** 
&ResourceType=cluster 
&<common request parameters>   

Sample success responses

XML format

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

JSON Syntax

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