Adds tags to resources.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
bssapi:TagResources | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
ResourceType | string | Yes | The resource type. Set the value to instance for savings plan instances. | instance |
| ResourceId | array | Yes | The list of resource IDs. | |
string | No | The resource ID. | spn-XXXXXX | |
| Tag | array<object> | Yes | The list of tags. You can add 1 to 20 tags at a time. | |
object | No | The tag information. | ||
Key | string | Yes | The tag key. An empty string is allowed. | tag1 |
Value | string | Yes | The tag value. | 001 |
Response elements
Parameter | Type | Description | Example |
object | |||
Code | string | The status code. | InternalError |
Message | string | The error message. | This API is not applicable for caller. |
Data | boolean | The returned data. | true |
RequestId | string | The request ID. | 1537A007-72D7-4165-8A26-8694A38E219A |
Success | boolean | Indicates whether the request was successful. | true |
Examples
Success response
JSON format
{
"Code": "InternalError",
"Message": "This API is not applicable for caller.",
"Data": true,
"RequestId": "1537A007-72D7-4165-8A26-8694A38E219A",
"Success": true
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.