Queries the tag details of Anti-DDoS Origin Enterprise instances.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListTagResources |
The operation that you want to perform. Set the value to ListTagResources. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the Anti-DDoS Origin Enterprise instances reside. |
ResourceType | String | Yes | INSTANCE |
The type of the resource. Valid value: INSTANCE. |
ResourceGroupId | String | No | test |
The ID of the resource group. |
ResourceId.N | RepeatList | No | ddosbgp-cn-v0h1fmwbc024 |
The IDs of Anti-DDoS Enterprise instances whose tags you want to query. Valid values of N: 1 to 50. You can specify a maximum of 50 instances at a time. Example: ResourceId.1, ResourceId.2, ..., ResourceId.50. Note You must specify either a ResourceId or a combination of a Tag.N.Key and a Tag.N.Value.
|
Tag.N.Key | String | No | testKey1 |
The key of each tag. Valid values of N: 1 to 20. You can specify a maximum of 20 tag keys at a time. For example, Tag.1.Key, Tag.2.Key, ..., and Tag.20.Key. Note You must specify either a ResourceId or a combination of a Tag.N.Key and a Tag.N.Value.
|
Tag.N.Value | String | No | testValue1 |
The value of each tag. Valid values of N: 1 to 20. You can specify a maximum of 20 tag values at a time. For example, Tag.1.Value, Tag.2.Value, ..., and Tag.20.Value. Note You must specify either a ResourceId or a combination of a Tag.N.Key and a Tag.N.Value. You must specify the Tag.N.Key for each tag.
|
NextToken | String | No | RGuYpqDdKhzXb8C3.D1BwQgc1tMBsoxdGiEKHHUUCffomr |
The token that is used to perform the next query. If the next query does not exist, you can leave the parameter empty. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C3F7E6AE-43B2-4730-B6A3-FD17552B8F65 |
The ID of the request. |
NextToken | String | RGuYpqDdKhzXb8C3.D1BwQgc1tMBsoxdGiEKHHUUCffomr |
The token that is returned for the next query. If the next query does not exist, the parameter is not returned. |
TagResources | Array |
The list of Anti-DDoS Origin Enterprise instances and the tags that are attached to each instance. |
|
ResourceType | String | INSTANCE |
The type of the resource. Valid value: INSTANCE. |
ResourceId | String | ddosbgp-cn-o4017n9q9004 |
The ID of each Anti-DDoS Origin Enterprise instance. |
TagKey | String | testKey4 |
The key of each tag. |
TagValue | String | testValue4 |
The value of each tag. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListTagResources
&RegionId=cn-hangzhou
&ResourceType=INSTANCE
&ResourceId.1=ddosbgp-cn-v0h1fmwbc024
&<Common request parameters>
Sample success responses
JSON
format
{
"RequestId":"C3F7E6AE-43B2-4730-B6A3-FD17552B8F65",
"NextToken": "RGuYpqDdKhzXb8C3.D1BwQgc1tMBsoxdGiEKHHUUCffomr",
"TagResources": {
"TagResource": [
{
"ResourceId": "ddosbgp-cn-o4017n9q9004",
"TagKey": "testKey4",
"ResourceType": "INSTANCE",
"TagValue": "testValue4"
}
]
}
}
XML
format
<ListTagResourcesResponse>
<NextToken>RGuYpqDdKhzXb8C3.D1BwQgc1tMBsoxdGiEKHHUUCffomr</NextToken>
<RequestId>C3F7E6AE-43B2-4730-B6A3-FD17552B8F65</RequestId>
<TagResources>
<TagResource>
<element>
<ResourceId>ddosbgp-cn-o4017n9q9004</ResourceId>
<ResourceType>INSTANCE</ResourceType>
<TagKey>testKey4</TagKey>
<TagValue>testValue4</TagValue>
</element>
</TagResource>
</TagResources>
</ListTagResourcesResponse>
Error codes
For a list of error codes, visit the API Error Center.