Queries the tags of AnalyticDB for PostgreSQL instances.

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.

ResourceGroupId String No rg-bp67acfmxazb4p****

The ID of the resource group to which the instance belongs. For more information about how to obtain the ID of a resource group, see View basic information of a resource group.

RegionId String Yes cn-hangzhou

The ID of the region.

Note You can call the DescribeRegions operation to query the most recent region list.
ResourceType String Yes instance

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

Response parameters

Parameter Type Example Description
RequestId String A29EC547-B392-4340-AA4F-7C0A7B626E74

The ID of the request.

Tags Array of Tag

Details of the tags.

TagValue String test

The value of the tag.

TagKey String user

The key of the tag.

Examples

Sample requests

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

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeTagsResponse>
    <RequestId>A29EC547-B392-4340-AA4F-7C0A7B626E74</RequestId>
    <Tags>
        <TagValue>test</TagValue>
        <TagKey>user</TagKey>
    </Tags>
</DescribeTagsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "A29EC547-B392-4340-AA4F-7C0A7B626E74",
  "Tags" : [ {
    "TagValue" : "test",
    "TagKey" : "user"
  } ]
}

Error codes

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