Deleting Specified Exchanges in Batches
Function
This API is used to delete specified exchanges in batches.
Calling Method
For details, see Calling APIs.
URI
POST /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
| instance_id | Yes | String | Instance ID. |
| vhost | Yes | String | Virtual host name. If the name contains a slash (/), replace it with __F_SLASH__. Otherwise, the calling fails. For example, if the virtual host name is /test, the input parameter is __F_SLASH__test. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | Array of strings | Names of resources to be deleted. |
Response Parameters
Status code: 204
Exchange deleted.
None
Example Requests
Deleting specified exchanges in batches
POST /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges
{
"name" : [ "exchange1", "exchange2" ]
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 204 | Exchange deleted. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.