Adds tags to resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:TagResources |
create |
LoadBalancer
ServerGroup
Acl
SecurityPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The type of the resource. Valid values:
|
loadbalancer |
| ResourceId |
array |
Yes |
The resource IDs. |
acl-123 |
|
string |
No |
The resource ID. |
alb-gws76zi****** |
|
| Tag |
array<object> |
Yes |
The tags. |
test |
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. The tag key can be up to 128 characters in length and cannot start with |
env |
| Value |
string |
No |
The tag value. The tag value can be up to 128 characters in length and cannot start with |
product |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The operation to add tags to resources. |
||
| RequestId |
string |
The request ID. |
593B0448-D13E-4C56-AC0D-FDF****** |
Examples
Success response
JSON format
{
"RequestId": "593B0448-D13E-4C56-AC0D-FDF******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ResourceNotFound.Acl | The specified resource %s is not found. | |
| 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.SecurityPolicy | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.ServerGroup | The specified resource %s is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.