Queries the tags of one or more resources.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDcdnTagResources |
The operation that you want to perform. Set the value to DescribeDcdnTagResources. |
ResourceId.N | RepeatList | Yes | example.com |
The ID of resource N. Valid values of N: 1 to 50. |
ResourceType | String | Yes | DOMAIN |
The type of the resource. Set the value to DOMAIN. |
Tag.N.Key | String | No | env |
The key of tag N. Valid values of N: 1 to 20. |
Tag.N.Value | String | No | product |
The value of tag N. 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 of TagResource |
The resource tags. |
|
ResourceId | String | example.com |
The ID of the resource. |
Tag | Array of Tag |
The tags. |
|
Key | String | env |
The key of the tag. |
Value | String | product |
The value of the tag. |
Examples
Sample requests
https://dcdn.aliyuncs.com/?Action=DescribeDcdnTagResources
&ResourceId.1=example.com
&ResourceType=DOMAIN
&<Common request parameters>
Sample success responses
XML
format
<DescribeDcdnTagResourcesResponse>
<TagResources>
<ResourceId>example.com</ResourceId>
<Tag>
<Value>product</Value>
<Key>env</Key>
</Tag>
</TagResources>
<RequestId>34AB41F1-04A5-496F-8C8D-634BDBE6A9FB</RequestId>
</DescribeDcdnTagResourcesResponse>
JSON
format
{
"TagResources": [
{
"ResourceId": "example.com",
"Tag": [
{
"Value": "product",
"Key": "env"
}
]
}
],
"RequestId": "34AB41F1-04A5-496F-8C8D-634BDBE6A9FB"
}
Error codes
For a list of error codes, visit the API Error Center.