TagResources
Attaches tags to multiple MaxCompute resources in a specified region. The request includes the resource type, a list of resource IDs, and tag key-value pairs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:TagResources |
update |
*All Resource
|
None | None |
Request syntax
POST /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The resources to be tagged and the collection of tags. |
|
| RegionId |
string |
Yes |
The ID of the region where the resources reside. |
cn-hangzhou |
| ResourceId |
array |
Yes |
The list of resource IDs to be processed. |
|
|
string |
No |
The resource ID. The example value is a quota resource ID. |
quota-1 |
|
| ResourceType |
string |
Yes |
The resource type. Use Quota for quotas. |
Quota |
| Tag |
array<object> |
Yes |
The list of tags to attach. 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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| RequestId |
string |
The request ID. You can use this ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| data |
string |
The response data returned after the tag processing flow completes. |
success |
Examples
Success response
JSON format
{
"RequestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.