Removes tags from a resource.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceType | string | Yes | 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 | Yes | 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 | Yes | 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 | Yes | 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.
| |
string | Yes | 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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6AC79B74-9A78-58E2-818B-1D38EDC64D67"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-09-19 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||
|