2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
2016-04-20 16:10:51 -04:00
|
|
|
.. needs:body_verification
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
==============================
|
|
|
|
Hypervisors (os-hypervisors)
|
|
|
|
==============================
|
|
|
|
|
|
|
|
Lists all hypervisors, shows summary statistics for all hypervisors over
|
|
|
|
all compute nodes, shows details for a hypervisor, and shows the uptime
|
|
|
|
for a hypervisor.
|
|
|
|
|
|
|
|
List Hypervisors
|
|
|
|
================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-hypervisors
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Lists hypervisors.
|
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 03:44:57 +08:00
|
|
|
Error response codes: unauthorized(401), forbidden(403)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-06-03 13:16:36 +08:00
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- limit: hypervisor_limit
|
|
|
|
- marker: hypervisor_marker
|
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisors: hypervisors
|
|
|
|
- hypervisor_hostname: hypervisor_hostname
|
|
|
|
- id: hypervisor_id_body
|
|
|
|
- state: hypervisor_state
|
|
|
|
- status: hypervisor_status
|
2016-09-09 10:09:31 +08:00
|
|
|
- hypervisor_links: hypervisor_links
|
2016-05-16 17:35:18 +08:00
|
|
|
|
2017-01-03 11:58:53 -06:00
|
|
|
**Example List Hypervisors (v2.33): JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-01-03 11:58:53 -06:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/v2.33/hypervisors-list-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
List Hypervisors Details
|
|
|
|
========================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-hypervisors/detail
|
2016-03-23 12:16:06 +08:00
|
|
|
|
|
|
|
Lists hypervisors details.
|
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
Normal response codes: 200
|
|
|
|
|
|
|
|
Error response codes: unauthorized(401), forbidden(403)
|
|
|
|
|
2016-06-03 13:16:36 +08:00
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- limit: hypervisor_limit
|
|
|
|
- marker: hypervisor_marker
|
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisors: hypervisors
|
|
|
|
- cpu_info: cpu_info
|
|
|
|
- current_workload: current_workload
|
|
|
|
- status: hypervisor_status
|
|
|
|
- state: hypervisor_state
|
|
|
|
- disk_available_least: disk_available_least
|
|
|
|
- host_ip: host_ip
|
|
|
|
- free_disk_gb: hypervisor_free_disk_gb
|
|
|
|
- free_ram_mb: free_ram_mb
|
|
|
|
- hypervisor_hostname: hypervisor_hostname
|
|
|
|
- hypervisor_type: hypervisor_type_body
|
|
|
|
- hypervisor_version: hypervisor_version
|
|
|
|
- id: hypervisor_id_body
|
|
|
|
- local_gb: local_gb
|
|
|
|
- local_gb_used: local_gb_used
|
|
|
|
- memory_mb: memory_mb
|
|
|
|
- memory_mb_used: memory_mb_used
|
|
|
|
- running_vms: running_vms
|
|
|
|
- service: hypervisor_service
|
|
|
|
- service.host: host_name_body
|
|
|
|
- service.id: service_id_body
|
|
|
|
- service.disable_reason: service_disable_reason
|
|
|
|
- vcpus: hypervisor_vcpus
|
|
|
|
- vcpus_used: hypervisor_vcpus_used
|
2016-09-09 10:09:31 +08:00
|
|
|
- hypervisor_links: hypervisor_links
|
2016-05-16 17:35:18 +08:00
|
|
|
|
2017-01-03 11:58:53 -06:00
|
|
|
**Example List Hypervisors Details (v2.33): JSON response**
|
2016-03-23 12:16:06 +08:00
|
|
|
|
2017-01-03 11:58:53 -06:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/v2.33/hypervisors-detail-resp.json
|
2016-03-23 12:16:06 +08:00
|
|
|
:language: javascript
|
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Show Hypervisor Statistics
|
|
|
|
==========================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-hypervisors/statistics
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Shows summary statistics for all hypervisors over all compute nodes.
|
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 03:44:57 +08:00
|
|
|
Error response codes: unauthorized(401), forbidden(403)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisor_statistics: hypervisor_statistics
|
|
|
|
- count: hypervisor_count
|
|
|
|
- current_workload: current_workload
|
|
|
|
- disk_available_least: disk_available_least
|
|
|
|
- free_disk_gb: hypervisor_free_disk_gb
|
|
|
|
- free_ram_mb: free_ram_mb
|
|
|
|
- local_gb: local_gb
|
|
|
|
- local_gb_used: local_gb_used
|
|
|
|
- memory_mb: memory_mb
|
|
|
|
- memory_mb_used: memory_mb_used
|
|
|
|
- running_vms: running_vms_total
|
|
|
|
- vcpus: hypervisor_vcpus
|
|
|
|
- vcpus_used: hypervisor_vcpus_used
|
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example Show Hypervisor Statistics: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisors-statistics-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Show Hypervisor Details
|
|
|
|
=======================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-hypervisors/{hypervisor_id}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Shows details for a hypervisor.
|
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 03:44:57 +08:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisor_id: hypervisor_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisor: hypervisor
|
|
|
|
- cpu_info: cpu_info
|
|
|
|
- state: hypervisor_state
|
|
|
|
- status: hypervisor_status
|
|
|
|
- current_workload: current_workload
|
|
|
|
- disk_available_least: disk_available_least
|
|
|
|
- host_ip: host_ip
|
|
|
|
- free_disk_gb: hypervisor_free_disk_gb
|
|
|
|
- free_ram_mb: free_ram_mb
|
|
|
|
- hypervisor_hostname: hypervisor_hostname
|
|
|
|
- hypervisor_type: hypervisor_type_body
|
|
|
|
- hypervisor_version: hypervisor_version
|
|
|
|
- id: hypervisor_id_body
|
|
|
|
- local_gb: local_gb
|
|
|
|
- local_gb_used: local_gb_used
|
|
|
|
- memory_mb: memory_mb
|
|
|
|
- memory_mb_used: memory_mb_used
|
|
|
|
- running_vms: running_vms
|
|
|
|
- service: hypervisor_service
|
|
|
|
- service.host: host_name_body
|
|
|
|
- service.id: service_id_body
|
|
|
|
- service.disable_reason: service_disable_reason
|
|
|
|
- vcpus: hypervisor_vcpus
|
|
|
|
- vcpus_used: hypervisor_vcpus_used
|
|
|
|
|
2017-01-03 11:58:53 -06:00
|
|
|
**Example Show Hypervisor Details (v2.28): JSON response**
|
2016-06-20 18:42:54 +03:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/v2.28/hypervisors-show-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Show Hypervisor Uptime
|
|
|
|
======================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-hypervisors/{hypervisor_id}/uptime
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Shows the uptime for a hypervisor.
|
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 03:44:57 +08:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), NotImplemented(501)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisor_id: hypervisor_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisor: hypervisor
|
|
|
|
- hypervisor_hostname: hypervisor_hostname
|
|
|
|
- id: hypervisor_id_body
|
|
|
|
- state: hypervisor_state
|
|
|
|
- status: hypervisor_status
|
|
|
|
- uptime: uptime
|
|
|
|
|
2016-04-19 17:52:18 +09:00
|
|
|
**Example Show Hypervisor Uptime: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisors-uptime-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
Search Hypervisor
|
|
|
|
=================
|
|
|
|
|
2017-01-05 18:40:52 +09:00
|
|
|
.. rest_method:: GET /os-hypervisors/{hypervisor_hostname_pattern}/search
|
2016-03-23 12:16:06 +08:00
|
|
|
|
2017-01-05 18:40:52 +09:00
|
|
|
Search hypervisor by a given hypervisor host name or portion of it.
|
2016-03-23 12:16:06 +08:00
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
Normal response code: 200
|
|
|
|
|
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-05 18:40:52 +09:00
|
|
|
- hypervisor_hostname_pattern: hypervisor_hostname_pattern
|
2016-03-23 12:16:06 +08:00
|
|
|
|
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisors: hypervisors
|
|
|
|
- hypervisor_hostname: hypervisor_hostname
|
|
|
|
- id: hypervisor_id_body
|
|
|
|
- state: hypervisor_state
|
|
|
|
- status: hypervisor_status
|
|
|
|
|
2016-07-08 10:38:17 +08:00
|
|
|
**Example Search Hypervisor: JSON response**
|
2016-03-23 12:16:06 +08:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisors-search-resp.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
List Hypervisor Servers
|
|
|
|
=======================
|
|
|
|
|
2017-01-05 18:40:52 +09:00
|
|
|
.. rest_method:: GET /os-hypervisors/{hypervisor_hostname_pattern}/servers
|
2016-03-23 12:16:06 +08:00
|
|
|
|
2017-01-05 18:40:52 +09:00
|
|
|
List all servers belong to each hypervisor whose host name is matching
|
|
|
|
a given hypervisor host name or portion of it.
|
2016-03-23 12:16:06 +08:00
|
|
|
|
2016-07-12 14:14:38 +02:00
|
|
|
Policy defaults enable only users with the administrative role to perform
|
|
|
|
this operation. Cloud providers can change these permissions through
|
|
|
|
the ``policy.json`` file.
|
2016-04-25 03:44:57 +08:00
|
|
|
|
2016-03-23 12:16:06 +08:00
|
|
|
Normal response code: 200
|
|
|
|
|
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-05 18:40:52 +09:00
|
|
|
- hypervisor_hostname_pattern: hypervisor_hostname_pattern
|
2016-03-23 12:16:06 +08:00
|
|
|
|
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
2016-05-16 17:35:18 +08:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- hypervisors: hypervisors
|
|
|
|
- hypervisor_hostname: hypervisor_hostname
|
|
|
|
- id: hypervisor_id_body
|
|
|
|
- state: hypervisor_state
|
|
|
|
- status: hypervisor_status
|
|
|
|
- servers: servers
|
|
|
|
- servers.uuid: server_uuid
|
|
|
|
- servers.name: server_name
|
|
|
|
|
2016-07-08 10:38:17 +08:00
|
|
|
**Example List Hypervisor Servers: JSON response**
|
2016-03-23 12:16:06 +08:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisors-with-servers-resp.json
|
|
|
|
:language: javascript
|