Queries the exchanges or queues that are bound to a specified exchange.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:GetInstance |
list |
*Instance
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance to which the exchange belongs. |
1880770869023*** |
| VirtualHost |
string |
Yes |
The name of the vhost to which the exchange belongs. |
test |
| ExchangeName |
string |
Yes |
The name of the exchange. |
test |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. If this is your first call, or if you have retrieved all results, leave this parameter empty. |
caeba0bbb2be03f84eb48b699f0a**** |
| MaxResults |
integer |
No |
The maximum number of results to return. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The return code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
operation success |
| RequestId |
string |
The request ID. |
9C1E0502-0790-4FDB-8C96-6D5C8D9B7*** |
| Success |
boolean |
Indicates whether the call was successful. |
true |
| Data |
object |
The returned data. |
|
| MaxResults |
integer |
The maximum number of results returned. |
1 |
| NextToken |
string |
The token that is used to retrieve the next page of results. If the value is empty, all results have been returned. |
caebacccb2be03f84eb48b699f0a**** |
| Bindings |
array<object> |
The bindings. |
|
|
object |
|||
| SourceExchange |
string |
The name of the source exchange. |
test |
| Argument |
string |
The x-match property. Valid values:
This parameter is valid only for headers exchanges. |
test |
| BindingKey |
string |
The binding key.
|
amq.test |
| BindingType |
string |
The type of the destination object. Valid values:
|
QUEUE |
| DestinationName |
string |
The name of the destination. |
QueueTest |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "operation success",
"RequestId": "9C1E0502-0790-4FDB-8C96-6D5C8D9B7***",
"Success": true,
"Data": {
"MaxResults": 1,
"NextToken": "caebacccb2be03f84eb48b699f0a****",
"Bindings": [
{
"SourceExchange": "test",
"Argument": "test",
"BindingKey": "amq.test",
"BindingType": "QUEUE",
"DestinationName": "QueueTest"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InstanceIdNotExist | The instance resource does not exist. | |
| 404 | InstanceNotExist | The instance resource does not exist. | The instance resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.