Creates and attaches tags to specified resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:TagResources |
update |
*All Resource
|
None | None |
Request syntax
POST /pop/v5/tag/tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
application |
| ResourceIds |
string |
Yes |
The list of resource IDs. The list must contain 1 to 20 IDs in JSON array format. |
["000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877"] |
| Tags |
string |
Yes |
The tag key-value pairs. Take note of the following limits when you configure tags:
|
[{"key":"key1","value":"v1"},{"key":"key2","value":"v2"}] |
| ResourceRegionId |
string |
Yes |
The region where the resource resides. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The status code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The ID of the request. |
000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Edas.errorcode.InstanceNotExist.Instance.message | The instance does not exist. | The instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.