2016-04-12 13:03:46 +00:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
2018-07-17 03:16:13 +00:00
|
|
|
==========================
|
|
|
|
Ping instances (os-fping)
|
|
|
|
==========================
|
2016-06-14 06:31:18 +00:00
|
|
|
|
|
|
|
.. warning::
|
|
|
|
|
|
|
|
This API only works with ``nova-network`` which is
|
|
|
|
deprecated. It should be avoided in any new applications.
|
2016-12-10 07:57:14 +00:00
|
|
|
These will fail with a 404 starting from microversion 2.36.
|
2018-05-10 19:12:35 +00:00
|
|
|
It was removed in the 18.0.0 Rocky release.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-19 16:16:31 +00:00
|
|
|
Pings instances and reports which instances are alive.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Ping Instances
|
|
|
|
==============
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
.. rest_method:: GET /os-fping
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-19 16:16:31 +00:00
|
|
|
Runs the fping utility to ping instances and reports which instances are alive.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Specify the ``all_tenants=1`` query parameter to ping instances for all tenants. For example:
|
|
|
|
|
2016-05-19 16:16:31 +00:00
|
|
|
::
|
|
|
|
|
|
|
|
GET /os-fping?all_tenants=1
|
|
|
|
|
|
|
|
Specify the ``include`` and ``exclude`` query parameters to filter the results. For example:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
GET /os-fping?all_tenants=1&include=uuid1,uuid2&exclude=uuid3,uuid4
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-09 21:18:24 +00:00
|
|
|
Policy defaults enable only users with the administrative role or the
|
|
|
|
owner of the server to perform this operation. Cloud providers can
|
|
|
|
change these permissions through the ``policy.json`` file.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2018-05-10 19:12:35 +00:00
|
|
|
Error response codes: serviceUnavailable(503), unauthorized(401), forbidden(403),
|
|
|
|
itemNotFound(404), gone(410)
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Request
|
2016-04-14 17:10:59 +00:00
|
|
|
-------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
|
2016-04-12 13:03:46 +00:00
|
|
|
- all_tenants: all_tenants
|
|
|
|
- include: include
|
|
|
|
- exclude: exclude
|
|
|
|
|
|
|
|
Response
|
2016-04-14 17:10:59 +00:00
|
|
|
--------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-19 16:16:31 +00:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- servers: servers
|
|
|
|
- alive: alive
|
|
|
|
- id: server_id
|
|
|
|
- project_id: project_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Example Ping Instances**
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-04-19 13:12:29 +00:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-fping/fping-get-resp.json
|
2016-04-12 13:03:46 +00:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Ping An Instance
|
|
|
|
================
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
.. rest_method:: GET /os-fping/{instance_id}
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-19 16:16:31 +00:00
|
|
|
Runs the fping utility to ping an instance and reports whether the instance is alive.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-09 21:18:24 +00:00
|
|
|
Policy defaults enable only users with the administrative role or the
|
|
|
|
owner of the server to perform this operation. Cloud providers can
|
|
|
|
change these permissions through the ``policy.json`` file.
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-05-09 21:18:24 +00:00
|
|
|
Error response codes: serviceUnavailable(503), unauthorized(401), forbidden(403),
|
2018-05-10 19:12:35 +00:00
|
|
|
itemNotFound(404), gone(410)
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
Request
|
2016-04-14 17:10:59 +00:00
|
|
|
-------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 12:50:03 +00:00
|
|
|
|
2016-04-12 13:03:46 +00:00
|
|
|
- instance_id: instance_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 17:10:59 +00:00
|
|
|
--------
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-05-19 16:16:31 +00:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- server: server
|
|
|
|
- alive: alive
|
|
|
|
- id: server_id
|
|
|
|
- project_id: project_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Example Ping An Instance**
|
2016-04-12 13:03:46 +00:00
|
|
|
|
2016-04-19 13:12:29 +00:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-fping/fping-get-details-resp.json
|
2016-04-12 13:03:46 +00:00
|
|
|
:language: javascript
|