Adds tags to specified resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:TagResources |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
CLUSTER、GATEWAY、GOVERNANCEAPPLICATION |
| ResourceId |
array |
No |
The resource ID.
Note
The number in the parameter name specifies the index of the instance ID. For example:
|
|
|
string |
No |
The resource ID. |
mse-cn-7pp2st29t16 hkhon1****@0932f4959f8**** |
|
| Tag |
array<object> |
Yes |
A list of tags. You can specify up to 20 tags. |
|
|
object |
No |
A collection of tag information. |
||
| Key |
string |
No |
The tag key. The tag key cannot be an empty string. It can be up to 128 characters in length. The tag key cannot start with `aliyun` or `acs:`. The tag key cannot contain `http://` or `https://`. |
env |
| Value |
string |
No |
The tag value. |
prd |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E0A79810-9396-521C-A09D-E757B3E2BAF4 |
| Message |
string |
The returned message. |
请求处理成功 |
| ErrorCode |
string |
The error code. |
mse-100-000 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "E0A79810-9396-521C-A09D-E757B3E2BAF4",
"Message": "请求处理成功",
"ErrorCode": "mse-100-000",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.