UntagResources

更新时间:
复制 MD 格式

Removes tags from resources.

Debug

Test this operation in OpenAPI Explorer. You do not need to calculate signatures. After a successful call, OpenAPI Explorer automatically generates sample SDK code.

Request parameters

Name

Type

Required

Example

Description

Action

String

Yes

UntagResources

A required parameter. Set the value to UntagResources.

RegionId

String

Yes

cn-hangzhou

The region ID.

ResourceType

String

Yes

PolarDBXInstance

The resource type. The value must be PolarDBXInstance.

All

Boolean

No

false

Specifies whether to remove all tags. This parameter is valid only when TagKey.N is empty. Valid values are true and false. The default value is false.

ResourceId.N

String

No

pxc-xxxxx

The instance ID.

TagKey.N

String

No

1

The tag key.

Response data

Name

Type

Example

Description

RequestId

String

AE4F6C34-065F-45AA-B5DC-4B8D816F6305

The request ID.

Examples

Sample request

http(s)://[Endpoint]/?Action=UntagResources
&RegionId=cn-hangzhou
&ResourceType=PolarDBXInstance
&All=false
&ResourceId=["pxc-xxxxx"]
&TagKey=["1"]
&<Common request parameters>

Sample responses

XML format

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

<UntagResourcesResponse>
    <RequestId>AE4F6C34-065F-45AA-B5DC-4B8D816F6305</RequestId>
</UntagResourcesResponse>

JSON format

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

{
  "RequestId" : "AE4F6C34-065F-45AA-B5DC-4B8D816F6305"
}

Error codes

For more information about error codes, see the Error Center.

For more information about error codes, see the Error Center.