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

Commit

Permalink
doc: Document Host.source field.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarnes authored and ashcrow committed Mar 20, 2017
1 parent a20aed9 commit ce2e047
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions doc/endpoints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ Retrieve a specific host record.
"cpus": int, // The number of CPUs on the cluster host
"memory": int, // The memory of the cluster host in kilobytes
"space": int, // The diskspace on the cluster host
"last_check": string // ISO date format the cluster host was last checked
"last_check": string, // ISO date format the cluster host was last checked
"source": string // (optional) External source for host information
}
.. note::
Expand All @@ -545,9 +546,16 @@ Retrieve a specific host record.
.. note::
See :ref:`host-os` for a list and description of host statuses.

The ``source`` value, if defined, names a storage plugin which can provide
information for this particular ``Host`` record. If omitted, host information
is obtained from the default storage plugin defined by Commissaire's storage
configuration.

Example
~~~~~~~

A host owned by Commissaire.

.. code-block:: javascript
{
Expand All @@ -557,7 +565,23 @@ Example
"cpus": 4,
"memory": 11989228,
"space": 487652,
"last_check": "2015-12-17T15:48:18.710454"
"last_check": "2015-12-17T15:48:18.710454",
"source": ""
}
A host owned by an external provider (note the ``"source"`` field).

.. code-block:: javascript
{
"address": "192.168.100.50",
"status": "active",
"os": "fedora",
"cpus": 4,
"memory": 2048,
"space": 51475068,
"last_check": "2016-11-28T22:10:11.851787",
"source": "cloudforms"
}
PUT
Expand Down

0 comments on commit ce2e047

Please sign in to comment.