Calls the UntagResources operation to remove tags from resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:UntagResources |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type. Set this parameter to INSTANCE. |
INSTANCE |
| All |
boolean |
No |
Specifies whether to remove all tags from the resources. |
false |
| ResourceId |
array |
Yes |
The resource ID. |
drds******** |
|
string |
No |
|||
| TagKey |
array |
No |
The key of the tag. Note
N specifies the sequence number of the tag key. For example: * Tag.1.Key specifies the key of the first tag. * Tag.2.Key specifies the key of the second tag. |
color |
|
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
The request result. |
true |
| RequestId |
string |
The request ID. |
DSSDF-SEWE-***** |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "DSSDF-SEWE-*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.tagKey | Check the parameter tagKey %s | |
| 400 | InvalidParameter.tagValue | Check the parameter tagValue %s | |
| 400 | InvalidParameter.tags.exceed | Tags num exceed 10 | |
| 400 | InvalidParameter.tags.notFound | Tags connot be empty | |
| 400 | InvalidParameter.tags.json.error | Thr parameter tags is not a JsonArray | |
| 400 | TagService.%s | TagService return errorMsg: %s | |
| 400 | TagApi.InvalidParameter.resourceId.exceed | ResourceId num exceed 50 | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.