This repository has been archived by the owner on Feb 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs for hosts statuses and endpoint.
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
REST Endpoints | ||
============== | ||
|
||
Host | ||
---- | ||
|
||
**Endpoint**: /api/v0/host/{IP} | ||
|
||
GET | ||
``` | ||
|
||
PUT | ||
``` | ||
|
||
DELETE | ||
`````` | ||
|
||
Hosts | ||
----- | ||
|
||
**Endpoint**: /api/v0/hosts | ||
|
||
|
||
GET | ||
``` | ||
Retrieve a list of hosts. | ||
|
||
.. code-block:: javascript | ||
[ | ||
{ | ||
"address": string, | ||
"status": enum(string), | ||
"os": string, | ||
"cpus": int, | ||
"memory": int, | ||
"space": int, | ||
"last_check": string | ||
}... | ||
] | ||
.. note:: | ||
See :ref:`host-statuses` for a list and description of host statuses. | ||
|
||
|
||
Example | ||
~~~~~~~ | ||
|
||
.. code-block:: javascript | ||
[ | ||
{ | ||
"address": "192.168.100.50", | ||
"status": "active", | ||
"os": "atomic", | ||
"cpus": 4, | ||
"memory": 11989228, | ||
"space": 487652, | ||
"last_check": "2015-12-17T15:48:18.710454" | ||
}, | ||
{ | ||
"address": "192.168.100.51", | ||
"status": "active", | ||
"os": "atomic", | ||
"cpus": 3, | ||
"memory": 11989228, | ||
"space": 487652, | ||
"last_check": "2015-12-17T15:48:30.401090" | ||
} | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ Contents: | |
:maxdepth: 2 | ||
|
||
authentication | ||
endpoints | ||
statuses | ||
|
||
API Documentation: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Statuses | ||
======== | ||
|
||
.. _host-statuses: | ||
|
||
Host Statuses | ||
------------- | ||
|
||
* **investigating**: The host has passed credentials to commissaire which is now looking at the system. | ||
* **bootstrapping**: The host is going through changes to become active. | ||
* **active**: The host is part of the cluster and is registered with the Container Manager. | ||
* **inactive**: The host exists but is currently not actively working as a node for the Container Manager. | ||
* **disassociated**: The host exists but is not associated with the Container Manager. |