API - Managing instances

This API is only available for customer that have created the instances through our Customer page. If you signed via a provider, you create your instances from there.

Paste your API key here to update the examples with your key

List instances

GET https://customer.cloudamqp.com/api/instances

Example:

$ curl YOUR_APIKEY@https://customer.cloudamqp.com/api/instances
[{ "id": 1234, "plan": "lemur", "region": "amazon-web-services::eu-west-1", "name": "My test" }]

Instance details

GET https://customer.cloudamqp.com/api/instances/:id

Example:

$ curl YOUR_APIKEY@https://customer.cloudamqp.com/api/instances/1234
{ "id": 1234, "plan": "lemur", "region": "amazon-web-services::eu-west-1", "name": "My test", "url": "amqp://user:password@lemur.cloudamqp.com/vhost", "apikey": "..."}

Create instance

POST https://customer.cloudamqp.com/api/instances
Paramenters
name
Name of the instance
plan
Name of the plan, valid options are: lemur, tiger, bunny, rabbit, panda, ape, hippo, lion
region
Name of the region you want to create your instance in, see the full list of regions at the end of the page.
vpc_subnet (optional)
Dedicated VPC subnet, shouldn't overlap with your current VPC's subnet.
nodes (optional)
Number of nodes in cluster (plan must support it)
rmq_version (optional)
RabbitMQ version

Example:

$ curl -d "name=test&plan=tiger&region=amazon-web-services::us-east-1" YOUR_APIKEY@https://customer.cloudamqp.com/api/instances
{ "id": 1234, "plan": "lemur", "region": "amazon-web-services::eu-west-1", "name": "My test", "url": "amqp://user:password@lemur.cloudamqp.com/vhost", "apikey": "..."}

Change instance

PUT https://customer.cloudamqp.com/api/instances/:id
Paramenters
name
Name of the instance
plan
Name of the plan, valid options are: lemur, tiger, bunny, rabbit, panda, ape, hippo, lion
nodes (optional)
Number of nodes in cluster (plan must support it)

Example:

$ curl -XPUT -d"name=test2&plan=lemur" YOUR_APIKEY@https://customer.cloudamqp.com/api/instances/1234

Delete instance

DELETE https://customer.cloudamqp.com/api/instances/:id

Example:

$ curl -XDELETE YOUR_APIKEY@https://customer.cloudamqp.com/api/instances/1234