UntagResources

Updated at: 2024-09-26 06:44

Removes tags from gateways.

When you call the operation, take note of the following information:

  • You can remove up to 20 tags at a time.

  • If a tag is removed from an instance and is not added to other instances, the tag is automatically deleted.

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

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. You can call the DescribeRegions operation to query the IDs of available regions.

ResourceRegionId

String

No

cn-hangzhou

The ID of the region in which the resource is located.

ResourceType

String

Yes

GATEWAY

The type of the resource. Valid value: GATEWAY.

All

Boolean

No

false

Specifies whether to remove all tags of the instance. Default value: false. Valid values:

  • true

  • false

ResourceId.N

String

Yes

gw-uf6wjk5xxxxxxx

The gateway IDs. You can remove tags from up to 50 instances at a time.

TagKey.N

String

Yes

testkey1

The key of the tag to remove. You can remove up to 20 tag keys at a time. This parameter cannot be an empty string.

Response parameters

Parameter

Type

Example

Description

Parameter

Type

Example

Description

RequestId

String

601B6F25-21E7-4484-99D5-3EF2625C0088

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UntagResources
&RegionId=cn-hangzhou
&ResourceRegionId=cn-hangzhou
&ResourceType=GATEWAY
&All=false
&ResourceId=["gw-uf6wjk5xxxxxxx"]
&TagKey=["testkey1"]
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UntagResourcesResponse>
    <RequestId>601B6F25-21E7-4484-99D5-3EF2625C0088</RequestId>
</UntagResourcesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "601B6F25-21E7-4484-99D5-3EF2625C0088"
}

Error codes

For a list of error codes, see Service error codes.

  • On this page (1, T)
  • Debugging
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare