The TagResources operation attaches tags to specified ECI resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:TagResources |
ContainerGroup
ImageCache
VirtualNode
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the resource is located. |
cn-hangzhou |
| RegionId |
string |
Yes |
The ID of the region where the resource is located. |
cn-hangzhou |
| ResourceId |
array |
Yes |
The list of resource IDs. |
|
|
string |
No |
The ID of a resource. Specify the ID of the resource based on the value of ResourceType. |
eci-2zelg8vwnlzdhf8hv**** |
|
| Tag |
array<object> |
Yes |
The list of tags. You can attach a maximum of 20 tags to a resource. |
|
|
object |
No |
The list of tags. You can attach a maximum of 20 tags to a resource. |
||
| Key |
string |
No |
The key of the tag. The key cannot be an empty string. The key can be up to 128 characters in length. It cannot start with |
testkey |
| Value |
string |
No |
The value of the tag. The value can be an empty string. The value can be up to 128 characters in length. It cannot start with |
testvalue |
| ResourceType |
string |
Yes |
The type of the resource. Valid values:
|
ContainerGroup |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
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 | |
| 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. | |
| 400 | NumberExceed.Tags | The length of tags exceeded limit: 20. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.