-
Notifications
You must be signed in to change notification settings - Fork 27
REST Locations
andreisavu edited this page May 11, 2012
·
8 revisions
GET /v1/locations
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'}]
POST /v1/locations
{
"provider": "localhost",
"config": {}
}
HTTP/1.1 200 OK
Location: /v1/locations/5
GET /v1/locations/1
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 /v1/locations/1
HTTP/1.1 200 OK