<back to all web services
CreateExchange
The following routes are available for this service:| POST | /messagequeue/rabbit/create/exchange | | |
|---|
CreateExchange Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| exchange | body | TypeMQRabbitExchange | No | |
TypeMQRabbitExchange Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| DataCenterCode | form | string | No | |
| Name | form | string | No | |
| Type | form | ExchangeType | No | |
| Durable | form | bool | No | |
| AutoDelete | form | bool | No | |
| Arguments | form | Dictionary<string, Object> | No | |
ExchangeType Enum:| Direct | |
| Fanout | |
| Header | |
| Topic | |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /messagequeue/rabbit/create/exchange HTTP/1.1
Host: n3tapi.palmettovdc.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateExchange xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/N3TAPI.Services">
<exchange xmlns:d2p1="http://schemas.datacontract.org/2004/07/N3TDataBroker.Models">
<d2p1:Arguments xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringanyType>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value />
</d3p1:KeyValueOfstringanyType>
</d2p1:Arguments>
<d2p1:AutoDelete>false</d2p1:AutoDelete>
<d2p1:DataCenterCode>String</d2p1:DataCenterCode>
<d2p1:Durable>false</d2p1:Durable>
<d2p1:Name>String</d2p1:Name>
<d2p1:Type>Direct</d2p1:Type>
</exchange>
</CreateExchange>