
Add host show api. I cannot bump the api version to 1.5 as the unit test fail. seem pecan check the request version to all controller function which lead to unit test fail. Change-Id: I4b6afbe3f8126fea5323e5905366955e5b106b93 Partially-Implements: blueprint show-container-engine-info
87 lines
1.3 KiB
ReStructuredText
87 lines
1.3 KiB
ReStructuredText
.. -*- rst -*-
|
|
|
|
==================
|
|
Manage zun host
|
|
==================
|
|
|
|
List all compute hosts
|
|
========================================
|
|
|
|
.. rest_method:: GET /v1/hosts
|
|
|
|
Enables administrative users to list all Zun container hosts.
|
|
|
|
Response Codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 200
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 400
|
|
- 401
|
|
- 403
|
|
|
|
Response Parameters
|
|
-------------------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
- hosts: host_list
|
|
- uuid: uuid
|
|
- hostname: hostname
|
|
- mem_total: mem_total
|
|
- cpus: cpus
|
|
- os: os
|
|
- labels: labels
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: samples/host-get-all-resp.json
|
|
:language: javascript
|
|
|
|
Show details of a host
|
|
===========================
|
|
|
|
.. rest_method:: GET /v1/hosts/{host_ident}
|
|
|
|
Get all information of a host in Zun.
|
|
|
|
Response Codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 200
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 401
|
|
- 403
|
|
- 404
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- host_ident: host_ident
|
|
|
|
Response
|
|
--------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- uuid: uuid
|
|
- hostname: hostname
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: samples/host-get-resp.json
|
|
:language: javascript
|