Queries a list of resource tags.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:ListTagResources |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TagOwnerUid |
string |
No |
The Alibaba Cloud account ID to which the labels belong. |
123xxxx |
| TagOwnerBid |
string |
No |
The BID of the tag owner. |
26842 |
| ResourceType |
string |
Yes |
The resource type. Set the value to DOMAIN. Valid values:
|
DOMAIN |
| NextToken |
string |
No |
The token for the next query. |
QpgBAAAAAABsb2dzL2RzLw== |
| ResourceId |
array |
No |
The resource ID. |
|
|
string |
No |
The instance ID. Valid values of N: 1 to 50. |
example.com |
|
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key. |
testKey |
| Value |
string |
No |
The tag value. |
testValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token for the next query. |
QpgBAAAAAABsb2dzL2RzLw== |
| RequestId |
string |
The request ID. |
64D28B53-5902-409B-94F6-FD46680144FE |
| TagResources |
object |
||
| TagResource |
array<object> |
The list of mappings between resources and tags. |
|
|
object |
The list of mappings between resources and tags. |
||
| TagValue |
string |
The tag value. |
testValue |
| ResourceType |
string |
The resource type. Set the value to DOMAIN. |
DOMAIN |
| ResourceId |
string |
The resource ID. |
example.com |
| TagKey |
string |
The tag key. |
testKey |
Examples
Success response
JSON format
{
"NextToken": "QpgBAAAAAABsb2dzL2RzLw==",
"RequestId": "64D28B53-5902-409B-94F6-FD46680144FE",
"TagResources": {
"TagResource": [
{
"TagValue": "testValue",
"ResourceType": "DOMAIN",
"ResourceId": "example.com",
"TagKey": "testKey"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified RegionId is invalid. | |
| 400 | MissParameter.TagOrResourceId | Either Tag or ResourceId must be specified. | |
| 400 | TagIsInvalid | The number of Tag exceeds 20. | |
| 400 | ResourceIdIsInvalid | The number of ResourceId exceeds 50. | The number of resource IDs (ResourceId) cannot exceed 50. |
| 400 | TagKeyIsInvalid | The specified TagKey is invalid. | |
| 400 | TagValueIsInvalid | The specified TagValue is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.