Skip to content
andreisavu edited this page May 11, 2012 · 8 revisions

List Locations

Request

GET /v1/locations

Response

HTTP/1.1 200 OK
Content-Type: application/json

[{'config': {}, 'links': {'self': '/v1/locations/0'}, 'provider': 'localhost'},
 {'config': {'identity': 'ADS45345',
             'location': 'eu-west-1',
             'sshPublicKey': '',
             'userName': ''},
  'links': {'self': '/v1/locations/1'},
  'provider': 'aws-ec2'}]

Create a Location

Request

POST /v1/locations

{   
  "provider": "localhost",
  "config": {}
}   

Response

HTTP/1.1 200 OK
Location: /v1/locations/5

Get a Location

Request

GET /v1/locations/1

Response

HTTP/1.1 200 OK
Content-Type: application/json

{'config': {'identity': 'ADS45345',
            'location': 'eu-west-1',
            'sshPublicKey': '',
            'userName': ''},
 'links': {'self': '/v1/locations/1'},
 'provider': 'aws-ec2'}

Delete a Location

Request

DELETE /v1/locations/1

Response

HTTP/1.1 200 OK