Removes tags from resources of Global Accelerator (GA).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • accelerator: a standard GA instance.
  • basicaccelerator: a basic GA instance.
  • bandwidthpackage: a bandwidth plan.
  • acl: an access control list (ACL).
All Boolean No false

Specifies whether to remove all tags of the specified resource. Valid values:

  • true: yes
  • false (default): no
ResourceId.N String No ga-bp149u6o36qt1as9b****

The ID of the resource whose tags you want to remove.

  • If ResourceType is set to accelerator, set the value of ResourceId to the ID of a standard GA instance.
  • If ResourceType is set to basicaccelerator, set the value of ResourceId to the ID of a basic GA instance.
  • If ResourceType is set to bandwidthpackage, set the value of ResourceId to the ID of a bandwidth plan.
  • If ResourceType is set to acl, set the value of ResourceId to the ID of an ACL.

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.