nova/api-ref/source/servers-action-remote-consoles.inc
Pushkar Umaranikar d68e80ce44 method verification for server-action-remote-consoles
Verify and update the response codes for the methods based
on what is in the code.

part of blueprint: api-ref-in-rst

Change-Id: Ia84f61c8529a20f2d5ebe97939dc8ee45d8679b9
2016-05-11 19:27:12 +00:00

150 lines
3.9 KiB
ReStructuredText

.. -*- rst -*-
.. needs:parameter_verification
.. needs:example_verification
.. needs:body_verification
Get Rdp Console (os-getRDPConsole Action)
=========================================
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
Gets an `RDP <https://technet.microsoft.com/en-us/windowsserver/ee236407>`__ console for a server.
Specify the ``os-getRDPConsole`` action in the request body.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404),
conflict(409), notImplemented(501)
Request
-------
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id
- server_id: server_id
- os-getRDPConsole: os-getRDPConsole
**Example Get Rdp Console (os-getRDPConsole Action): JSON request**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-rdp-console-post-req.json
:language: javascript
Response
--------
**Example Get Rdp Console (os-getRDPConsole Action): JSON response**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-rdp-console-post-resp.json
:language: javascript
Get Serial Console (os-getSerialConsole Action)
===============================================
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
Gets a serial console for a server.
Specify the ``os-getSerialConsole`` action in the request body.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404),
conflict(409), notImplemented(501)
Request
-------
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id
- server_id: server_id
- os-getSerialConsole: os-getSerialConsole
**Example Get Serial Console (os-getSerialConsole Action): JSON request**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-serial-console-post-req.json
:language: javascript
Response
--------
**Example Get Serial Console (os-getSerialConsole Action): JSON response**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-serial-console-post-resp.json
:language: javascript
Get Spice Console (os-getSPICEConsole Action)
=============================================
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
Gets a SPICE console for a server.
Specify the ``os-getSPICEConsole`` action in the request body.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404),
conflict(409), notImplemented(501)
Request
-------
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id
- server_id: server_id
- os-getSPICEConsole: os-getSPICEConsole
**Example Get Spice Console (os-getSPICEConsole Action): JSON request**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-spice-console-post-req.json
:language: javascript
Response
--------
**Example Get Spice Console (os-getSPICEConsole Action): JSON response**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-spice-console-post-resp.json
:language: javascript
Get Vnc Console (os-getVNCConsole Action)
=========================================
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
Gets a VNC console for a server.
Specify the ``os-getVNCConsole`` action in the request body.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404),
conflict(409), notImplemented(501)
Request
-------
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id
- server_id: server_id
- os-getVNCConsole: os-getVNCConsole
**Example Get Vnc Console (os-getVNCConsole Action): JSON request**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-vnc-console-post-req.json
:language: javascript
Response
--------
**Example Get Vnc Console (os-getVNCConsole Action): JSON response**
.. literalinclude:: ../../doc/api_samples/os-remote-consoles/get-vnc-console-post-resp.json
:language: javascript