Queries the tags that are attached to resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:ListTagResources |
get |
Node
Cluster
Vpd
Subnet
Vcc
ElasticNetworkInterface
Er
HighDensityElasticNetworkInterface
NetworkInterface
Vsc
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
Node |
| ResourceId |
array |
No |
The list of resource IDs. |
|
|
string |
No |
The resource ID. |
i1520224L16AY60305 |
|
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. |
PodName |
| Value |
string |
No |
The tag value. |
WFT-OTC |
| NextToken |
string |
No |
The token used to retrieve the next page of results. Set this parameter to the NextToken value returned in the previous response. |
AAAAAdQ3Z+oPlg49gsr2y8jb6wY= |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
8F208B6D-4C42-5FD3-B6BE-E826E92A44DD |
| TagResources |
object |
||
| TagResource |
array<object> |
The tagged resources. |
|
|
object |
|||
| TagKey |
string |
The tag key. |
env |
| TagValue |
string |
The tag value. |
dev |
| ResourceId |
string |
The resource ID. |
i15azeddnvf7uhw2oij57o0 |
| ResourceType |
string |
The resource type. Valid values:
|
Cluster |
| NextToken |
string |
The token to retrieve the next page of results. If the response is paged, this parameter is returned. To retrieve the next page, include this token in the next request. |
AAAAAdQ3Z+oPlg49gsr2y8jb6wY= |
Examples
Success response
JSON format
{
"RequestId": "8F208B6D-4C42-5FD3-B6BE-E826E92A44DD",
"TagResources": {
"TagResource": [
{
"TagKey": "env",
"TagValue": "dev\n",
"ResourceId": "i15azeddnvf7uhw2oij57o0",
"ResourceType": "Cluster\n"
}
]
},
"NextToken": "AAAAAdQ3Z+oPlg49gsr2y8jb6wY="
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SystemError | A system error occurred while processing your request | |
| 403 | NoPermission | The operator is not permission for this operate |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.