TagResources
Attaches tags to the specified Elastic Container Instance (ECI) resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:TagResources |
update |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ResourceId |
array |
Yes |
The IDs of the resources. |
|
|
string |
No |
The resource ID. Specify the resource ID based on the value of the ResourceType parameter. |
eci-2zelg8vwnlzdhf8hv**** |
|
| Tag |
array<object> |
Yes |
The list of tags. You can attach up to 20 tags to a resource. |
|
|
object |
No |
The list of tags. You can attach up to 20 tags to a resource. |
||
| Key |
string |
No |
The tag key. It cannot be an empty string. It can be up to 128 characters in length, cannot start with |
testkey |
| Value |
string |
No |
The tag value. It can be an empty string. It can be up to 128 characters in length, cannot start with |
testvalue |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
ContainerGroup |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0E234675-3465-4CC3-9D0F-9A864BC391DD |
Examples
Success response
JSON format
{
"RequestId": "0E234675-3465-4CC3-9D0F-9A864BC391DD"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus | %s | The specified instance status is invalid. |
| 400 | OperationConflict | Request was denied due to conflict with a previous request. | Request was denied due to conflict with a previous request. |
| 400 | NoPermission.Tag | No permissions to operate tags. | You do not have the permission to manage tags. |
| 400 | NumberExceed.Tags | The length of tags exceeded limit: 20. | The number of tags exceeds the limit of 20. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.