Attaches tags to specified resources.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
sr:TagResources | create | *All Resource
| None | None |
Request syntax
POST /webapi/tags HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
| body | object | No | The request body. | |
ResourceType | string | Yes | The resource type. | instance |
RegionId | string | Yes | The region ID. | cn-hangzhou |
| ResourceId | array | Yes | A list of resource IDs. The list can contain up to 50 IDs. | |
string | No | The resource ID. | c-b25e21e243889XXX | |
| Tag | array | Yes | A list of tags to add. The list can contain up to 20 tags. | |
object | No | |||
Key | string | No | The tag key. | k1 |
Value | string | No | The tag value. | v1 |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 32A44F0D-BFF6-5664-999A-218BBDE74XXX |
Examples
Success response
JSON format
{
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE74XXX"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.