Deletes a binding.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteBinding

The operation that you want to perform.

Set the value to DeleteBinding.

BindingKey String Yes .test.

The binding key.

BindingType String Yes QUEUE

The type of the destination. Valid values:

  • QUEUE
  • EXCHANGE
DestinationName String Yes DemoQueue

The name of the destination.

InstanceId String Yes amqp-cn-v0h1kb9nu***

The ID of the instance.

RegionId String Yes cn-hanghzou

The ID of the region.

SourceExchange String Yes NormalEX

The name of the source exchange.

VirtualHost String Yes test

The name of the vhost.

Response parameters

Parameter Type Example Description
RequestId String 5A60DBD2-2D9D-40EC-BEBF-C86E88817***

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteBinding
&BindingKey=.test.
&BindingType=QUEUE
&DestinationName=DemoQueue
&InstanceId=amqp-cn-v0h1kb9nu***
&RegionId=cn-hanghzou
&SourceExchange=NormalEX
&VirtualHost=test
&<Common request parameters>

Sample success responses

XML format

<DeleteBindingResponse>
      <RequestId>5A60DBD2-2D9D-40EC-BEBF-C86E88817***</RequestId>
</DeleteBindingResponse>

JSON format

{
    "RequestId":"5A60DBD2-2D9D-40EC-BEBF-C86E88817***"
}

Error codes

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