Queries the tags of AnalyticDB for PostgreSQL instances.


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.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

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

Error codes

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