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

List Locations

Request

GET /v1/locations

Response

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

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

Create a Location

Request

POST /v1/locations

{   
  "provider": "localhost",
  "identity": "",
  "credential": "", 
  "location": "localhost"
}   

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

{
  "provider": "localhost",
  "location": "localhost",
  "identity": "",
  "links": {
    "self": "/v1/locations/1"
  }
} 

Delete a Location

Request

DELETE /v1/locations/1

Response

HTTP/1.1 200 OK
Clone this wiki locally