You can call this operation to unbind a tag from an instance. If the tag is not bound to another instance, it is deleted.

Note
  • You can unbind up to 20 tags at a time.
  • When a tag is unbound from all instances, it is automatically deleted.

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.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of the instance.

ResourceId.N RepeatList Yes dds-bpxxxxxxxx

The ID of the instance.

Note N specifies the nth instance. For example, ResourceId.1 indicates the ID of the first instance. ResourceId.2 indicates the ID of the second instance.
ResourceType String Yes INSTANCE

The type of the resource. Set the value to INSTANCE.

TagKey.N RepeatList No Development team

The key of the tag.

Note N specifies the nth tag. For example: TagKey.1 indicates the key of the first tag. TagKey.2 indicates the key of the second tag.
All Boolean No false

Specifies whether to unbind all tags from the instance. Valid values:

  • true
  • false
Note
  • Default value: false.
  • If you specify both this parameter and TagKey.N, this parameter is skipped.

Response parameters

Prameter Type Sample response Description
RequestId String FA3A7F36-DB57-4281-8935-4B9DF61554EB

The ID of the request.

Samples

Sample requests

http(s)://mongodb.aliyuncs.com/? Action=UntagResources
&RegionId=cn-hangzhou
&ResourceType=INSTANCE
&ResourceId.1=dds-bpxxxxxxxx
&TagKey.1=Development team
&<Common request parameter>

Sample success response

XML format

<RequestId>FA3A7F36-DB57-4281-8935-4B9DF61554EB</RequestId>

JSON format

{
    "RequestId": "FA3A7F36-DB57-4281-8935-4B9DF61554EB"
}

Error codes

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