Querying Bindings of an Exchange
Function
This API is used to query bindings of an exchange.
Calling Method
For details, see Calling APIs.
URI
GET /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges/{exchange}/binding
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
vhost |
Yes |
String |
Virtual host name. |
exchange |
Yes |
String |
Exchange name. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
size |
Integer |
Number of displayed records. |
total |
Integer |
Total number of results in a query. |
items |
Array of BindingsDetails objects |
Binding details. |
Example Requests
Querying bindings of an exchange
GET /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges/{exchange}/binding
Example Responses
Status code: 200
Successful
{ "size" : 1, "total" : 1, "items" : [ { "source" : "excahnge-test", "destination_type" : "queue", "destination" : "queue-test", "routing_key" : "test-routing-key", "properties_key" : "test-routing-key" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Successful |
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.