Removes tags from resources of Global Accelerator (GA).
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 ID of the region where the GA instance is deployed. Set the value to cn-hangzhou. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-426655440000 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters. Note If you do not set this parameter, the system sets ClientToken to the value of RequestId. The value of RequestId may be different for each API request.
|
ResourceType | String | Yes | accelerator |
The type of the resource whose tags you want to remove. Valid values:
|
All | Boolean | No | false |
Specifies whether to remove all tags of the specified resource. Valid values:
|
ResourceId.N | String | No | ga-bp149u6o36qt1as9b**** |
The ID of the resource whose tags you want to remove.
You can enter up to 50 resource IDs. |
TagKey.N | String | No | valueTest |
The key of the tag to be removed. The system removes all tags with this tag key. You can specify up to 20 tag keys. Note If All is set to true, this parameter does not take effect.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 54B48E3D-DF70-471B-AA93-08E683A1B45 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UntagResources
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&ResourceType=accelerator
&All=false
&ResourceId=["ga-bp149u6o36qt1as9b****"]
&TagKey=["valueTest"]
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UntagResourcesResponse>
<RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</UntagResourcesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
Error codes
For a list of error codes, see Service error codes.