Lists the tags that are attached to specified resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gwlb:ListTagResources |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
loadbalancer |
| ResourceId |
array |
No |
A list of resource IDs. You can specify up to 50 resource IDs in each call. |
|
|
string |
No |
The resource ID. |
gwlb-nrnrxwd15en27r**** |
|
| Tag |
array<object> |
No |
A list of tags. You can specify up to 20 tags in each call. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. |
testKey |
| Value |
string |
No |
The tag value. |
testValue |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Valid values:
|
WyI2NDQ3MWUxM2EzOWNhMmY0Y2M2YTRiNzZhOWQwNmU1Y2RlNTYzMGEzIiwibiIsIm4iLDEsLTEsMTY5ODcxMzI2NjU0MywiNjU0MDRlYjI2MmI3MDhjY2JiMjM0ZmU0ODNkNTVmMGRhZDllOTBi**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 1000. Default value: 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response that is returned. |
||
| NextToken |
string |
The token that is used to retrieve the next page of results. Valid values:
|
d209f4e63ec942c967c50c888a13**** |
| RequestId |
string |
The request ID. |
A95325A2-E421-58A6-88AD-7A26CE610F45 |
| TagResources |
array<object> |
The list of tag resources. |
|
|
object |
The information about the tags that are attached to the resource. |
||
| ResourceId |
string |
The resource ID. |
gwlb-nrnrxwd15en27r**** |
| ResourceType |
string |
The resource type. Valid values:
|
loadbalancer |
| TagKey |
string |
The tag key. |
testKey |
| TagValue |
string |
The tag value. |
testValue |
Examples
Success response
JSON format
{
"NextToken": "d209f4e63ec942c967c50c888a13****",
"RequestId": "A95325A2-E421-58A6-88AD-7A26CE610F45",
"TagResources": [
{
"ResourceId": "gwlb-nrnrxwd15en27r****\n",
"ResourceType": "loadbalancer",
"TagKey": "testKey",
"TagValue": "testValue"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParam.TagsOrResourceIds | The param of TagsOrResourceIds is missing. | The param of TagsOrResourceIds is missing. |
| 400 | MissingParam.TagKey | The param of TagKey is missing. | The parameter of tag key is missing. |
| 400 | DuplicatedParam.ResourceId | The param of %s is duplicated. | The param of %s is duplicated. |
| 400 | DuplicatedParam.TagKey | The param of %s is duplicated. | The parameter of tag key is duplicated. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.