Applications are your personal virtual machines with your favored preinstalled software.
Returns a list of application resources associated with the currently logged in user.
GET /rest/applications
[
{
"id": "43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59",
"host": "d9tready.com",
"webAccess": "http://my-plone.d9tready.com",
"last_oom": "2015-06-09 06:53:40: update-apt-xapi killed",
"text_status": "up",
"template": "d9t:trusty",
"image_url": "http://images.d9tready.com/plone.png",
"name": "MyPlone",
"created": "2014-08-29T11:53:54",
"up": true,
"_links":
[
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59",
"rel": "self"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/credentials",
"rel": "credentials"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/firewall",
"rel": "firewall"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/domains",
"rel": "domains"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/mailaliases",
"rel": "mailaliases"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/logs",
"rel": "logs"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/console",
"rel": "console"
}
]
},
...
]
| Status Code | Description |
|---|---|
| 200 OK | No error, operation successful |
| 403 FORBIDDEN | Authentication failure |
| 503 SERVICE UNAVAILABLE | Service not/partially reachable |
Retrieve a single application resource.
GET /rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59
{
"id": "43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59",
"name": "MyPlone",
"created": "2014-08-29T11:53:54",
"up": true,
"domain_suffix": "d9tready.com",
"sshAccess": "ssh://user@d9tready.com:10023",
"webAccess": "http://my-plone.d9tready.com",
"text_status": "up",
"last_oom": "2015-06-09 06:53:40: update-apt-xapi killed",
"image_url": "",
"verificationKey": "d9tready:0a4e9f57d7a8195a7d7c73244ba14040ae2635f1e622",
"memory_limit": 64,
"memory_limit_minimum": 64,
"mem_active_anon_cur": 0,
"mem_inactive_anon_cur": 0,
"cost": 2,
"cost_up": 2,
"cost_down": 0,
"cost_memory": 2,
"cost_hdd": 0,
"net_tx_cur": 0,
"net_rx_cur": 0,
"du_diff_cur": 0,
"cpu_pct_cur": 0,
"_links":
[
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59",
"rel": "self"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/credentials",
"rel": "credentials"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/firewall",
"rel": "firewall"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/domains",
"rel": "domains"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/mailaliases",
"rel": "mailaliases"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/logs",
"rel": "logs"
},
{
"href": "https://d9tready.com/rest/applications/43678cada57a6b839653929905ff90129ab78c9e64cb6f5756ccacabc1f34a59/console",
"rel": "console"
}
]
}
| Status Code | Description |
|---|---|
| 200 OK | No error, operation successful |
| 403 FORBIDDEN | Authentication failure |
| 404 NOT FOUND | Resource not found |
Creates a new application resource.
POST /rest/applications
You can use an existing application for creation aka. cloning. Use from_application instead of from_template in your payload.
{
"name": "<NAME>",
"from_template": "<TEMPLATE_ID>",
"from_application": "<APPLICATION_ID>"
}
Either specify from_template or from_application.
On successful creation the URL to the new application resource is set in the Location-Header.
HTTP/1.0 201 CREATED
Location: https://d9tready.com/rest/applications/<CONTAINER_ID>
| Status Code | Description |
|---|---|
| 201 CREATED | Successful creation of resource |
| 400 BAD REQUEST | Malformed syntax or bad query |
| 403 FORBIDDEN | Authentication failure |
Modifying the state of an application resource. E.g. Upsate, name or memory settings.
PUT /rest/applications/<CONTAINER_ID>
{
"up": <true|false>,
"memory_limit": <MEMORY_LIMIT>,
"name": "<NAME>"
}
| Status Code | Description |
|---|---|
| 200 OK | No error, operation successful |
| 400 BAD REQUEST | Malformed syntax or bad query |
| 403 FORBIDDEN | Authentication failure |