UntagResources
Disassociates tags.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:UntagResources |
delete |
*AgentSpace
|
None | None |
Request syntax
DELETE /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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 |
|
| tagKey |
array |
No |
The list of tag keys to disassociate. You can specify up to 20 tag keys, and duplicate keys are not allowed. If this parameter is not empty, it takes precedence over the all parameter. |
["key1", "key2", "key3"] |
|
string |
No |
The tag key to disassociate. |
key1 |
|
| all |
string |
No |
Specifies whether to disassociate all user-defined tags. Valid values: "true", "false", and "". If this parameter is not specified or is set to an empty string, it is treated as false. The value "true" indicates that all tags are disassociated only when the tagKey parameter is not specified or is an empty array. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
01A0033F-8E61-570B-BBDB-4D5A64898F54 |
Examples
Success response
JSON format
{
"requestId": "01A0033F-8E61-570B-BBDB-4D5A64898F54"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.