Unbinds tags from a specified Bastionhost instance and deletes the tags at a time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UntagResources |
The operation that you want to perform. Set the value to UntagResources. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the Bastionhost instance. |
ResourceType | String | Yes | INSTANCE |
The type of the resource. Set the value to INSTANCE, which indicates that the resource is a Bastionhost instance. |
ResourceId.N | RepeatList | Yes | bastionhost-cn-78v1gc**** |
The ID of instance N. Valid values of N: 1 to 20. Note You can call the DescribeInstances operation to obtain the ID of the Bastionhost instance.
|
TagKey.N | RepeatList | No | test |
Tag key N of the instance. Valid values of N: 1 to 20. |
All | Boolean | No | false |
Specifies whether to delete all tags bound to the Bastionhost instance.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A8A665B9-8550-4942-9DEE-73198051856B |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UntagResources
&RegionId=cn-hangzhou
&ResourceType=INSTANCE
&ResourceId.1=bastionhost-cn-78v1gc****
&<Common request parameters>
Sample success responses
XML
format
<UntagResourcesResponse>
<RequestId>A8A665B9-8550-4942-9DEE-73198051856B</RequestId>
</UntagResourcesResponse>
JSON
format
{
"RequestId":"A8A665B9-8550-4942-9DEE-73198051856B"
}
Error codes
For a list of error codes, visit the API Error Center.