UntagResources
Detaches tags from one or more specified EAIS resources. When a tag is detached, it is automatically deleted if it is not attached to any other resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eais:UntagResources |
none |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the resource is located. Call DescribeRegions to query the latest list of Alibaba Cloud regions. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type. The only valid value is |
instance |
| All |
boolean |
No |
Specifies whether to detach all tags from the resources. This parameter takes effect only when TagKey.N is not specified in the request. Valid values:
|
false |
| ResourceId |
array |
Yes |
The IDs of the resources. You can specify up to 50 resource IDs. |
|
|
string |
No |
A resource ID. |
eais-hzs4h26yyt5xkcke**** |
|
| TagKey |
array |
No |
The tag keys. You can specify up to 20 tag keys. |
|
|
string |
No |
The tag key of the resource. |
TestKey |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
1E23D585-BBD8-436F-9615-54CACD67**** |
Examples
Success response
JSON format
{
"RequestId": "1E23D585-BBD8-436F-9615-54CACD67****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. The maximum is 50. | |
| 400 | Duplicate.ResourceId | The request contains duplicated ResourceId. | |
| 400 | MissingParameter.ResourceIds | You must specify ResourceIds. | |
| 400 | Duplicate.TagKey | The Tag.N.Key contains a duplicated key. | |
| 400 | InvalidParameter.TagKey | The specified Tag.n.Key is invalid. | |
| 400 | InvalidParameter.TagValue | The specified Tag.n.Value is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.