TagResources
Adds or updates tags.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:TagResources |
create |
*AgentSpace
|
None | None |
Request syntax
POST /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
{ "resourceType": "agentspace", "resourceId": ["space-a", "space-b"], "tag": [{ "key": "key1", "value": "value1" }] } |
| resourceType |
string |
Yes |
The resource type. Set the value to agentspace. |
agentspace |
| resourceId |
array |
Yes |
The list of resource IDs. |
["space-a","space-b"] |
|
string |
No |
The resource ID. |
space-a |
|
| tag |
array<object> |
No |
The list of tags. Up to 20 tag key-value pairs are supported at a time. |
[{ "key": "key1", "value": "value1" }] |
|
object |
No |
The resource tag. |
{ "key": "key1", "value": "value1" } |
|
| key |
string |
No |
The tag key. The format requirements are as follows:
|
key1 |
| value |
string |
No |
The tag value. The format requirements are as follows:
|
value1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
01A11E6F-1216-5ED6-918C-668BAF39022B |
Examples
Success response
JSON format
{
"requestId": "01A11E6F-1216-5ED6-918C-668BAF39022B"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.