API by router
Shared hosting
GET
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdFormat
uuidinstance_id*Instance IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
config_overlay*created_at*Created AtFormat
date-timecustomer_id*Customer IdFormat
uuidinstance_id*Instance IdFormat
uuidupdated_at*Updated AtFormat
date-timecurl -X GET 'https://example.com/v1/shared-hosting/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/config?instance_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "config_overlay": {}, "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "updated_at": "2019-08-24T14:15:22Z"}DELETE
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdFormat
uuidinstance_id*Instance IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/shared-hosting/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty
PUT
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdFormat
uuidinstance_id*Instance IdFormat
uuidX-Api-Key?string|nullapplication/json- body
config_overlay*Successful Response
application/json- response
config_overlay*created_at*Created AtFormat
date-timecustomer_id*Customer IdFormat
uuidinstance_id*Instance IdFormat
uuidupdated_at*Updated AtFormat
date-timecurl -X PUT 'https://example.com/v1/shared-hosting/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/config' \ -H 'Content-Type: application/json' \ -d '{ "config_overlay": {}}'Example Response
{ "config_overlay": {}, "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "updated_at": "2019-08-24T14:15:22Z"}GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/shared-hosting/nodes'Example Response
[ { "capacity": 0, "created_at": "2019-08-24T14:15:22Z", "current_load": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
capacity?CapacityRange
1 <= value <= 500Default
50instance_id*Instance IdFormat
uuidSuccessful Response
application/json- response
capacity*Capacitycreated_at*Created AtFormat
date-timecurrent_load*Current Loadid*IdFormat
uuidinstance_id*Instance IdFormat
uuidstatus*Statustenant_id*Tenant IdFormat
uuidcurl -X POST 'https://example.com/v1/shared-hosting/nodes' \ -H 'Content-Type: application/json' \ -d '{ "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366"}'Example Response
{ "capacity": 0, "created_at": "2019-08-24T14:15:22Z", "current_load": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"}PATCH
HTTPBearerheader
AuthorizationBearer <token>node_id*Node IdFormat
uuidX-Api-Key?string|nullapplication/json- body
capacity?|nullstatus?|nullSuccessful Response
application/json- response
capacity*Capacitycreated_at*Created AtFormat
date-timecurrent_load*Current Loadid*IdFormat
uuidinstance_id*Instance IdFormat
uuidstatus*Statustenant_id*Tenant IdFormat
uuidcurl -X PATCH 'https://example.com/v1/shared-hosting/nodes/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "capacity": 0, "created_at": "2019-08-24T14:15:22Z", "current_load": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"}GET
HTTPBearerheader
AuthorizationBearer <token>node_id*Node IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/shared-hosting/nodes/497f6eca-6276-4993-bfeb-53cbbbba6f08/customers'Example Response
[ { "customer_email": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "customer_name": "string", "placed_at": "2019-08-24T14:15:22Z", "status": "active" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
config_overlay?customer_id*Customer IdFormat
uuidnode_id?|nullSuccessful Response
application/json- response
config_id*Config IdFormat
uuidcustomer_id*Customer IdFormat
uuidinstance_id*Instance IdFormat
uuidnode_id*Node IdFormat
uuidcurl -X POST 'https://example.com/v1/shared-hosting/place' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e"}'Example Response
{ "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "node_id": "6e0bdcac-9717-4a6f-972e-97489dffeb0c"}