ListTagResources
Queries the tag bindings of MaxCompute resources by region and resource type. You can filter the results by resource ID or tag, and use NextToken to query the next page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListTagResources |
list |
*All Resource
|
None | None |
Request syntax
GET /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the resource resides. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type. Set the value to Quota for quotas. |
Quota |
| ResourceId |
array |
No |
The list of resource IDs used to filter the results. |
|
|
string |
No |
The resource ID. The example value is a quota resource ID. |
quota-1 |
|
| Tag |
array<object> |
No |
The list of tags used to filter the results. Each tag consists of a key and a value. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. |
env |
| Value |
string |
No |
The tag value. |
test |
| NextToken |
string |
No |
The pagination token used to query the next page. Set this parameter to the NextToken value returned in the previous response. |
example_next_token |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
SaleListTagResourcesWrapperDTO |
||
| RequestId |
string |
The ID of the request. You can use the request ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| NextToken |
string |
The pagination token used to query the next page of results. |
example_next_token |
| TagResources |
object |
The collection of tag bindings. |
|
| TagResource |
array<object> |
The resource tag bindings returned on the current page. |
|
|
object |
|||
| TagKey |
string |
The tag key. |
env |
| TagValue |
string |
The tag value. |
test |
| ResourceId |
string |
The resource ID. The example value is a quota resource ID. |
quota-1 |
| ResourceType |
string |
The resource type. Set the value to Quota for quotas. |
Quota |
Examples
Success response
JSON format
{
"RequestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"PageSize": 10,
"NextToken": "example_next_token",
"TagResources": {
"TagResource": [
{
"TagKey": "env",
"TagValue": "test",
"ResourceId": "quota-1",
"ResourceType": "Quota"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.