Detaches tags from a list of specified resources.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

Request parameters

Parameter Type Required? Example value Description
Action String Yes UnTagResources

The name of this action. Value: UntagResources

RegionId String Yes cn-hangzhou

The ID of the region to which the resource belongs.

ResourceId.N RepeatList Yes vpc-bp16qjewdsunr41m1****

The ID of the resource. Value range of N: 1 to 20.

ResourceType String Yes VPC

The type of the resource. Valid values:

  • VPC: Virtual Private Cloud (VPC)
  • VSWITCH: VSwitch
  • ROUTETABLE: Route table
  • EIP: Elastic IP address
TagKey.N RepeatList No FinanceDept

The key of the tag to be unbound. Value range of N: 1 to 20. This value can be a null string. It can be up to 64 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). It must start with a letter and cannot start with aliyun or acs:. It cannot contain http:// or https://.

Response parameters

Parameter Type Example value Description
RequestId String C46FF5A8-C5F0-4024-8262-B16B639225A0

The ID of the request.

Examples

Request example

http(s)://[Endpoint]/? Action=UnTagResources
&RegionId=cn-hangzhou	
&ResourceId.1=vpc-bp16qjewdsunr41m1****
&ResourceType=VPC
&<CommonParameters>

Response example

XML format

<UntagResourcesResponse>
      <RequestId>C46FF5A8-C5F0-4024-8262-B16B639225A0</RequestId>
</UntagResourcesResponse>

JSON format

{
	"RequestId":"C46FF5A8-C5F0-4024-8262-B16B639225A0"
}

Errors

HTTP status code Error code Error message Description
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource.

For a list of error codes, visit the API Error Center.