Queries the information about the bindings of a specific queue.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListQueueUpStreamBindings | The operation that you want to perform. Set the value to ListQueueUpStreamBindings. |
InstanceId | String | Yes | 1880770869023*** | The ID of the instance. |
MaxResults | Integer | Yes | 1 | The maximum number of entries to return. |
QueueName | String | Yes | QueueTest | The name of the queue. |
RegionId | String | Yes | cn-hangzhou | The ID of the region. |
VirtualHost | String | Yes | test | The name of the virtual host (vhost). |
NextToken | String | No | caeba0bbb2be03f84eb48b699f0a**** | The token that marks the end position of the result to return. To obtain the next batch of data, call the operation again by using the value of the NextToken parameter returned by the previous request. The first time you call this operation, set the NextToken parameter to an empty string. If you want to query all results, set the NextToken parameter to an empty string. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Struct | The returned data. |
|
Bindings | Array of BindingVO | An array of bindings. |
|
Argument | String | all | The x-match attribute. Valid values:
This parameter applies to only headers exchanges. |
BindingKey | String | amq.test | The binding key.
|
BindingType | String | QUEUE | The type of the object to which the source exchange is bound. Valid values:
|
DestinationName | String | QueueTest | The name of the object to which the source exchange is bound. |
SourceExchange | String | test | The name of the source exchange. |
MaxResults | String | 1 | The maximum number of entries returned. |
NextToken | String | caebacccb2be03f84eb48b699f0a**** | The token that marks the end position of the returned result. If this parameter is empty, all data is returned. |
RequestId | String | 8BFB1C9D-08A2-4859-A47C-403C9EFA2*** | The ID of the request. |
Examples
Sample requests
http(s)://amqp-open.cn-hangzhou.aliyuncs.com/?Action=ListQueueUpStreamBindings
&InstanceId=1880770869023***
&MaxResults=1
&QueueName=QueueTest
&RegionId=cn-hangzhou
&VirtualHost=test
&<Common request parameters>
Sample success responses
XML
format
<ListQueueUpStreamBindingsResponse>
<RequestId>8BFB1C9D-08A2-4859-A47C-403C9EFA2***</RequestId>
<Data>
<NextToken>,</NextToken>
<MaxResults>1</MaxResults>
<Bindings>
<SourceExchange>test</SourceExchange>
<Argument>all</Argument>
<BindingType>QUEUE</BindingType>
<BindingKey>amq.test</BindingKey>
<DestinationName>QueueTest</DestinationName>
</Bindings>
</Data>
</ListQueueUpStreamBindingsResponse>
JSON
format
{
"RequestId": "8BFB1C9D-08A2-4859-A47C-403C9EFA2***",
"Data": {
"NextToken": ",",
"MaxResults": 1,
"Bindings": {
"SourceExchange": "test",
"Argument": "all",
"BindingType": "QUEUE",
"BindingKey": "amq.test",
"DestinationName": "QueueTest"
}
}
}
Error codes
For a list of error codes, visit the API Error Center.