Removes tags from a specified resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:UnTagResources |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the resource. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The type of the resource from which you want to remove tags. Set the value to cluster, which indicates E-HPC clusters. |
cluster |
| ResourceId |
array |
Yes |
The resource IDs. You can specify up to 50 resource IDs. |
|
|
string |
No |
The resource IDs. You can specify up to 50 resource IDs. |
ehpc-hz-xxxx |
|
| TagKey |
array |
No |
The tag key of the resource. You can specify up to 20 tag keys. |
|
|
string |
No |
The tag key of the resource. |
TestKey |
|
| All |
boolean |
No |
Specifies whether to remove all tags from the resource. This parameter is valid only when the TagKey.N parameter is not specified. Valid values:
Default value: false. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | TagError | TAG API request failed. | |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.