Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
Updated docs for hosts statuses and endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashcrow committed Jan 7, 2016
1 parent f225fa5 commit 984e39d
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
71 changes: 71 additions & 0 deletions doc/endpoints.rst
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"
}
]
2 changes: 2 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Contents:
:maxdepth: 2

authentication
endpoints
statuses

API Documentation:

Expand Down
13 changes: 13 additions & 0 deletions doc/statuses.rst
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.

0 comments on commit 984e39d

Please sign in to comment.