1b5bb285e5
Add host list api Change-Id: I0511f3d0608043a709249052aa29a76ba9ded166 Partially-Implements: blueprint show-container-engine-info
46 lines
752 B
ReStructuredText
46 lines
752 B
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
|