AMQP data connector configuration object consists of the following attributes:

AttributeDescription
typeConnector type; must be always set to amqp.
idApp wide unique connector id.
serverProvide only the domain part of the URL without scheme.
portService port number.
credentialsOptional Username and password to connect to the service.
sslEither true or false. If true uses TLS connection.
sslConfigOptional Used when server uses a self signed certificate. It consists of two sections: server and client. Each section has its own fields as shown in Test and Create example.
queueThe name of the queue that the message will be delivered to.
vhostOptional Virtual host name, if needed.
dataProcessingMethodOptional. Id or name of the App method that will be used for filtering and/or transforming incoming data. See Overview page for details.
disabledOptional. When true data connector stops streaming.
POST .../v3/apps/:ref/dataconnectors/test

{
   "id": "dc.amqp.1",
   "type": "amqp",
   "server": "caterpillar.rmq.cloudamqp.com",
   "port": 5672,
   "credentials": {
     "user": "ikyzv",
     "password": "tVEgVdRX8QAW0_U0DrO5Gv26hLk5"
   },
   "sslConfig": {
     "server": {
       "certificate": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"
     },
     "client": {
       "certificate": "-----BEGIN CERTIFICATE-----....-----END CERTIFICATE-----",
       "key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----",
       "password": "somepassw"  
     }
   },  
   "vhost": "ikyzvusw",
   "queue": "jc",
   "dataProcessingMethod": "processData",  
   "ssl": false,
   "disabled": false
}
POST .../v3/apps/:ref/dataconnectors

{
   "id": "dc.amqp.1",
   "type": "amqp",
   "server": "caterpillar.rmq.cloudamqp.com",
   "port": 5672,
   "credentials": {
     "user": "ikyzv",
     "password": "tVEgVdRX8QAW0_U0DrO5Gv26hLk5"
   },
   "sslConfig": {
     "server": {
       "certificate": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"
     },
     "client": {
       "certificate": "-----BEGIN CERTIFICATE-----....-----END CERTIFICATE-----",
       "key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----",
       "password": "somepassw"  
     }
   },  
   "vhost": "ikyzvusw",
   "queue": "jc",
   "dataProcessingMethod": "processData",
   "ssl": false,
   "disabled": false
}
PUT .../v3/apps/:ref/dataconnectors/dc.amqp.1

{
   "credentials": {
     "user": "ikyz12122v",
     "password": "tVEgVdRX8QAW01212_U0DrO5Gv26hLk5"
   },
   "vhost": "ikyzvusw12122",
   "queue": "newQ",
   "dataProcessingMethod": "processData2"  
}

What’s Next