Queries information about the bindings whose binding destination is a specific exchange.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListExchangeUpStreamBindings |
The operation that you want to perform. Set the value to ListExchangeUpStreamBindings. |
ExchangeName | String | Yes | test |
The name of the exchange. |
InstanceId | String | Yes | 1880770869023*** |
The ID of the instance. |
MaxResults | Integer | Yes | 1 |
The maximum number of result entries to return. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region. |
VirtualHost | String | Yes | test |
The name of the vhost. |
NextToken | String | No | caeba0bbb2be03f84eb48b699f0a**** |
The token that marks the end position of the previous returned page. Call the operation again by using the value of the NextToken parameter returned by the previous request to obtain the next set of data. Leave this parameter empty the first time you call this operation. If all results have been returned, the value of NextToken in the response parameter is empty. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The response code. The HTTP 200 status code indicates that the request is successful. |
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 only to headers exchanges. |
BindingKey | String | amq.dle.test |
The binding key.
|
BindingType | String | EXCHANGE |
The type of the destination. Valid values:
|
DestinationName | String | test |
The name of the destination. |
SourceExchange | String | dle |
The name of the source exchange. |
MaxResults | Integer | 1 |
The maximum number of returned result entries. |
NextToken | String | caebacccb2be03f84eb48b699f0a**** |
The token that marks the end of the current returned page. If this parameter is empty, it indicates that you have retrieved all the data. |
Message | String | operation success |
The response message. |
RequestId | String | 2DCCCE88-BC82-4A4F-AF5E-9A759672B*** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListExchangeUpStreamBindings
&ExchangeName=test
&InstanceId=1880770869023***
&MaxResults=1
&RegionId=cn-hangzhou
&VirtualHost=test
&<Common request parameters>
Sample success responses
XML
format
<ListExchangeUpStreamBindingsResponse>
<RequestId>2DCCCE88-BC82-4A4F-AF5E-9A759672B***</RequestId>
<Message>operation success</Message>
<Data>
<NextToken>,</NextToken>
<MaxResults>1</MaxResults>
<Bindings>
<SourceExchange>dle</SourceExchange>
<Argument>all</Argument>
<BindingType>EXCHANGE</BindingType>
<BindingKey>amq.dle.test</BindingKey>
<DestinationName>test</DestinationName>
</Bindings>
</Data>
<Code>200</Code>
<Success>true</Success>
</ListExchangeUpStreamBindingsResponse>
JSON
format
{
"RequestId": "2DCCCE88-BC82-4A4F-AF5E-9A759672B***",
"Message": "operation success",
"Data": {
"NextToken": ",",
"MaxResults": 1,
"Bindings": {
"SourceExchange": "dle",
"Argument": "all",
"BindingType": "EXCHANGE",
"BindingKey": "amq.dle.test",
"DestinationName": "test"
}
},
"Code": 200,
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.