You can call this operation to query all tags in a specified region.

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
RegionId String Yes cn-hangzhou

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

Action String No DescribeTags

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

ResourceType String No INSTANCE

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

NextToken String No 212db86xxxxxxxx

The start Token for the next query. It is used to return more results.

Note This parameter is not required in the first query. If not all results are returned in one query, you can enter the NextToken returned in the previous query to query again.
AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
NextToken String 212db86xxxxxxxx

The start Token for the next query.

Note If not all results are returned for a single query, this parameter is returned. You can input the value returned for this parameter in the next query.
Tags Array

The tags of the instance.

TagKey String Development team

The key of the tag.

TagValues List Environment 4.0

The value of the tag.

RequestId String EEDBE38F-5CF5-4316-AAC2-35817BA60D68

The ID of the request.

Samples

Sample requests


http(s)://mongodb.aliyuncs.com/? Action=DescribeTags
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<Tags>
    <TagKey>Development team</TagKey>
    <TagValues>Environment 3.4</TagValues>
    <TagValues>Environment 4.0</TagValues>
</Tags>
<Tags>
    <TagKey>Service team</TagKey>
    <TagValues>Log Service</TagValues>
</Tags>
<RequestId>EEDBE38F-5CF5-4316-AAC2-35817BA60D68</RequestId>

JSON format

{
	"Tags":[
		{
			"TagKey":"Development team",
			"TagValues":[
				"Environment 3.4",
				"Environment 4.0"
			]
		},
		{
			"TagKey":"Service team",
			"TagValues":[
				"Log Service"
			]
		}
	],
	"RequestId":"EEDBE38F-5CF5-4316-AAC2-35817BA60D68"
}

Error codes

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