You can call this operation to query the tags of one or more resources.


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 DescribeTagResources

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

ResourceId.N RepeatList Yes

The ID of the resource for which tags are queried. Specify an accelerated domain name as the resource ID. Valid values of N: 1 to 50.

ResourceType String Yes DOMAIN

The resource type. Set the value to DOMAIN.

RegionId String No ch-hangzhou

The ID of your region.

Tag.N.Key String No key

The key of the tag. Valid values of N: 1 to 20.

Tag.N.Value String No value

The value of the tag. Valid values of N: 1 to 20.

Response parameters

Parameter Type Example Description
RequestId String 34AB41F1-04A5-496F-8C8D-634BDBE6A9FB

The ID of the request.

TagResources Array

The tags returned for the specified resource.

ResourceId String

The ID of the resource.

Tag Array

The key-value pair of the tag.

Key String env

The key of the tag.

Value String product

The value of the tag.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

  "TagResources": [
      "ResourceId": "",
      "Tag": [
          "Value": "product",
          "Key": "env"
  "RequestId": "34AB41F1-04A5-496F-8C8D-634BDBE6A9FB"

Error codes

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