Skip to main content

Service discovery messages

Request example

{
"header": {
"version": 5,
"systemId": "NTF9XNJ99HW3OF7A7",
"message": "serviceDiscovery"
},
"data": null
}

Response schema

{
"version": 1,
"connection": {
"sendParams": {
"host": "send exchange host",
"user": "rabbitmq user",
"password": "rabbitmq password",
"mandatory": false,
"immediate": false,
"exchange": {
"name": "exchange name",
"durable": true,
"autoDetect": false,
"internal": false,
"noWait": false
}
},
"receiveParams": {
"host": "receive queue host",
"user": "rabbitmq user",
"password": "rabbitmq password",
"consumer": "consumer name",
"autoAck": false,
"exclusive": false,
"noLocal": false,
"noWait": false,
"queue": {
"name": "queue name",
"durable": false,
"deleteWhenUnused": false,
"exclusive": false,
"noWait": false
}
}
}
}

Response codes

The response code is 200 with JSON based on the scheme above if OK or standard HTTP response codes if failed.

Note the following:

  • Standard HTTP response codes are:
    • 200 for successfully processed requests.
    • Other codes to indicate errors.
  • Certificate authentication in RabbitMQ is required.
  • TTL is in seconds.