Disassociates one or more tags from a resource list.

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 Server Load Balancer (SLB) instance belongs.

To query the region ID, call DescribeRegions.

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

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

ResourceType String Yes instance

The type of the resource. Valid values:

  • instance: SLB instance
  • certificate: certificate
  • acl: access control list
All Boolean No true

Indicates whether to disassociate all tags. This parameter is valid only when the TagKey.N parameter is null.

Valid values: true | false

TagKey.N RepeatList No FinanceDept

The tag value of the resource. Value range of N: 1 to 20. If you specify this parameter, the value of this parameter cannot be a null string.

The value can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://.

Note If you do not specify TagKey, all tags associated with the resource will be disassociated.

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=lb-bp16qjewdsunr41m1****
&ResourceType=instance
&TagKey.1=FinanceDept
&<CommonParameters>

Response example

XML format

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

JSON format

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

Errors

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