ListTagResources
Queries the tags bound to specified resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
epg:ListTagResources |
list |
*EgressProxyConfiguration
*EgressProxyGateway
*EgressProxyIpPool
*EgressProxyRuleGroup
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Valid values:
Valid values:
|
EgressProxyGateway |
| ResourceId |
array |
No |
The list of resource IDs. You can specify up to 50 resource IDs in a single call. You must specify at least one of ResourceId and Tag. |
|
|
string |
No |
The resource ID. |
epg-gw80bb6a94f835db**** |
|
| Tag |
array<object> |
No |
The list of tags. You can specify up to 20 tags in a single call. You must specify at least one of ResourceId and Tag. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. The key can be up to 128 characters in length. It cannot start with |
testKey |
| Value |
string |
No |
The tag value. The value can be up to 256 characters in length and cannot contain |
testValue |
| NextToken |
string |
No |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXG**** |
| MaxResults |
integer |
No |
The maximum number of entries to return per page during paging in a paged query. Valid values: 1 to 1000. Default value: 20. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| NextToken |
string |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
C79118A9-CA6D-5359-B53E-111BE8A03DCF |
| TagResources |
array<object> |
The list of tagged resources. |
|
|
object |
|||
| ResourceId |
string |
The resource ID. |
epg-gw80bb6a94f835db**** |
| ResourceType |
string |
The resource type. Valid values:
Valid values:
|
EgressProxyGateway |
| TagKey |
string |
The tag key. |
testKey |
| TagValue |
string |
The tag value. |
testValue |
| MaxResults |
integer |
The maximum number of entries returned in the current request. |
10 |
Examples
Success response
JSON format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "C79118A9-CA6D-5359-B53E-111BE8A03DCF",
"TagResources": [
{
"ResourceId": "epg-gw80bb6a94f835db****",
"ResourceType": "EgressProxyGateway",
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"MaxResults": 10
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParam.TagsOrResourceIds | The param of %s is missing. | |
| 400 | DuplicatedParam.ResourceId | The param of %s is duplicated. | |
| 400 | MissingParam.TagKey | The param of %s is missing. | The required parameter tag key is missing. |
| 400 | DuplicatedParam.TagKey | The param of %s is duplicated. | The tag key parameter contains duplicate values. |
| 404 | ResourceNotFound.EgressProxyGateway | The specified resource of %s is not found. | The specified egress proxy gateway resource does not exist. |
| 404 | ResourceNotFound.EgressProxyIpPool | The specified resource of %s is not found. | The specified egress proxy IP address pool resource does not exist. |
| 404 | ResourceNotFound.EgressProxyConfiguration | The specified resource of %s is not found. | The specified egress proxy configuration resource does not exist. |
| 404 | ResourceNotFound.EgressProxyRuleGroup | The specified resource of %s is not found. | The specified egress proxy rule group resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.