Queries 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 |
---|---|---|---|---|
Action | String | Yes | DescribeTags |
The operation that you want to perform. Set the value to DescribeTags. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
ResourceType | String | No | INSTANCE |
The resource type. Set the value to INSTANCE. |
ResourceGroupId | String | No | dds-bp17e7a04960**** |
The ID of the resource group. |
NextToken | String | No | 212db86**** |
The token used to start the next query to retrieve more results. Note This parameter is not required in the first query. If not all results are returned
in one query, you can pass in the NextToken value returned in the previous query to
perform the query again.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
NextToken | String | 212db86**** |
The token used to start the next query. Note If not all results are returned in the first query, this parameter is returned. You
can pass in the value of this parameter in the next query.
|
RequestId | String | EEDBE38F-5CF5-4316-AAC2-35817BA60D68 |
The ID of the request. |
Tags | Array of Tag |
Details about the tags. |
|
TagValues | Array of String | MongoDB 3.4 |
The value of the tag. |
TagKey | String | Test group |
The key of the tag. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/?Action=DescribeTags
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeTagsResponse>
<NextToken>212db86****</NextToken>
<RequestId>EEDBE38F-5CF5-4316-AAC2-35817BA60D68</RequestId>
<Tags>
<TagValues>MongoDB 3.4</TagValues>
<TagKey>Test group</TagKey>
</Tags>
</DescribeTagsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"NextToken" : "212db86****",
"RequestId" : "EEDBE38F-5CF5-4316-AAC2-35817BA60D68",
"Tags" : [ {
"TagValues" : [ "MongoDB 3.4" ],
"TagKey" : "Test group"
} ]
}
Error codes
For a list of error codes, visit the API Error Center.