TagResources
Adds tags to resources.
Operation description
Before attaching tags, Alibaba Cloud verifies the number of existing tags on the resources. If the limit is exceeded, an error message is returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidlc:TagResources |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
Job |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ResourceId |
array |
Yes |
The resource IDs. You can specify up to 50 resource IDs. |
|
|
string |
No |
The resource ID. |
dlcxxxxxx |
|
| Tag |
array<object> |
No |
The tags to be added. You can specify up to 20 tags. |
|
|
object |
No |
The tag information. |
||
| Key |
string |
No |
The tag key of the resource. The key can be up to 128 characters in length, cannot start with aliyun or acs:, and cannot contain http:// or https://. |
key |
| Value |
string |
No |
The tag value. |
value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.