调用DescribeDcdnTagResources查询资源对应的标签。
说明 单用户调用频率:10次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDcdnTagResources |
系统规定参数。取值:DescribeDcdnTagResources。 |
ResourceId.N | String | 是 | example.com |
资源ID,N的取值范围:1~50。 |
Tag.N.Key | String | 否 | env |
标签键,N的取值范围:1~20。 |
Tag.N.Value | String | 否 | product |
标签值,N的取值范围:1~20。 |
ResourceType | String | 是 | DOMAIN |
资源类型,固定值:DOMAIN。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 34AB41F1-04A5-496F-8C8D-634BDBE6A9FB |
请求ID。 |
TagResources | Array of TagResource |
资源标签。 |
|
ResourceId | String | example.com |
资源ID。 |
Tag | Array of Tag |
标签。 |
|
Key | String | env |
标签键。 |
Value | String | product |
标签值。 |
示例
请求示例
https://dcdn.aliyuncs.com/?Action=DescribeDcdnTagResources
&ResourceId=["example.com"]
&Tag=[{"Key":"env","Value":"product"}]
&ResourceType=DOMAIN
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDcdnTagResourcesResponse>
<RequestId>34AB41F1-04A5-496F-8C8D-634BDBE6A9FB</RequestId>
<TagResources>
<ResourceId>example.com</ResourceId>
<Tag>
<Key>env</Key>
<Value>product</Value>
</Tag>
</TagResources>
</DescribeDcdnTagResourcesResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "34AB41F1-04A5-496F-8C8D-634BDBE6A9FB",
"TagResources" : [ {
"ResourceId" : "example.com",
"Tag" : [ {
"Key" : "env",
"Value" : "product"
} ]
} ]
}
错误码
访问错误中心查看更多错误码。