2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
============================================
|
|
|
|
Servers diagnostics (servers, diagnostics)
|
|
|
|
============================================
|
|
|
|
|
|
|
|
Shows the usage data for a server.
|
|
|
|
|
|
|
|
Show Server Diagnostics
|
|
|
|
=======================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /servers/{server_id}/diagnostics
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Shows basic usage data for a server.
|
|
|
|
|
2016-05-09 08:50:06 -04:00
|
|
|
Policy defaults enable only users with the administrative role. Cloud
|
|
|
|
providers can change these permissions through the ``policy.json``
|
|
|
|
file.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-22 07:45:43 +08:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), notfound(404), conflict(409), 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
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
- server_id: server_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-09 08:50:06 -04:00
|
|
|
The response format for diagnostics is backend hypervisor specific,
|
|
|
|
and not well defined. This should be considered a debug interface
|
|
|
|
only, and not relied upon by programmatic tools.
|
|
|
|
|
|
|
|
**Example Server diagnostics**
|
|
|
|
|
|
|
|
Below is an example of diagnostics for a libvirt based server instance.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-03-23 19:17:40 +08:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|