Removes tags from a resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:UntagResources |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
No |
The type of the resource. Valid value:
|
user |
| All |
boolean |
No |
Specifies whether to remove all tags from the resource. Valid values:
Note
This parameter takes effect only when TagKey.N is not set in the request. |
false |
| ResourcePrincipalName |
array |
No |
The names of resources. Valid values of N: 1 to 50. If the ResourceType parameter is set to user, the resource name is the name of the RAM user. Note
You must specify only one of the following parameters: ResourceId and ResourcePrincipalName. |
|
|
string |
No |
The name of resource N. Valid values of N: 1 to 50. If the ResourceType parameter is set to user, the resource name is the name of the RAM user. Note
You must specify only one of the following parameters: ResourceId and ResourcePrincipalName. |
test@example.onaliyun.com |
|
| ResourceId |
array |
No |
The IDs of resources. Valid values of N: 1 to 50. If the ResourceType parameter is set to user, the resource ID is the ID of the RAM user. Note
You must specify only one of the following parameters: ResourceId and ResourcePrincipalName. |
UntagResources |
|
string |
No |
The ID of resource N. Valid values of N: 1 to 50. If the ResourceType parameter is set to user, the resource ID is the ID of the RAM user. Note
You must specify only one of the following parameters: ResourceId and ResourcePrincipalName. |
20732900249392**** |
|
| TagKey |
array |
No |
The tag keys of resources. Valid values of N: 1 to 20. N must be consecutive. |
|
|
string |
No |
The tag key of resource N. Valid values of N: 1 to 20. N must be consecutive. |
operator |
For more information about common request parameters, see API Reference.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
6AC79B74-9A78-58E2-818B-1D38EDC64D67 |
Examples
Success response
JSON format
{
"RequestId": "6AC79B74-9A78-58E2-818B-1D38EDC64D67"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.