Advanced
Тема интерфейса

Querying Bindings of an Exchange

Function

This API is used to query bindings of an exchange.

URI

GET /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges/{exchange}/binding

Table 1 Path Parameters

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.

exchange

Yes

String

Exchange name.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

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.

Table 3 BindingsDetails

Parameter

Type

Description

source

String

Exchange name.

destination_type

String

Binding target type.

destination

String

Binding target name.

routing_key

String

Binding key-value.

properties_key

String

URL-translated routing key.

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