Deletes an exchange.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteExchange | The operation that you want to perform. Set the value to DeleteExchange. |
ExchangeName | String | Yes | DemoExchange | The name of the exchange. |
InstanceId | String | Yes | amqp-cn-v0h1kb9nu*** | The ID of the instance. |
RegionId | String | Yes | cn-hangzhou | The ID of the region. |
VirtualHost | String | Yes | test | The name of the vhost. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6961FFB8-6358-4EDC-9E3C-4A0C56CE6*** | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteExchange
&ExchangeName=DemoExchange
&InstanceId=amqp-cn-v0h1kb9nu***
&RegionId=cn-hangzhou
&VirtualHost=test
&<Common request parameters>
Sample success responses
XML
format
<DeleteExchangeResponse>
<RequestId>6961FFB8-6358-4EDC-9E3C-4A0C56CE6***</RequestId>
</DeleteExchangeResponse>
JSON
format
{
"RequestId": "6961FFB8-6358-4EDC-9E3C-4A0C56CE6***"
}
Error codes
For a list of error codes, visit the API Error Center.