2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
===============================================================
|
2016-07-12 17:20:47 +03:00
|
|
|
Server consoles (servers, os-consoles, os-console-auth-tokens)
|
2016-04-12 09:03:46 -04:00
|
|
|
===============================================================
|
|
|
|
|
|
|
|
Manages server consoles.
|
|
|
|
|
2017-03-29 01:33:40 +08:00
|
|
|
.. note:: This is only used in Xenserver VNC Proxy.
|
|
|
|
|
2016-04-25 04:00:05 +08:00
|
|
|
Lists Consoles
|
2016-04-12 09:03:46 -04:00
|
|
|
==============
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /servers/{server_id}/consoles
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-03-27 09:22:10 +00:00
|
|
|
Lists all consoles for a server.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 04:00:05 +08:00
|
|
|
Error response codes: unauthorized(401), forbidden(403)
|
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-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-05-17 10:28:31 -04:00
|
|
|
|
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-17 10:28:31 -04:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- consoles: consoles
|
|
|
|
- console: console
|
|
|
|
- console_type: console_type
|
|
|
|
- id: console_id_in_body
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Example List Consoles**
|
2016-04-25 04:00:05 +08:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/consoles/consoles-list-get-resp.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Create Console
|
2016-04-12 09:03:46 -04:00
|
|
|
==============
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: POST /servers/{server_id}/consoles
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-03-27 09:22:10 +00:00
|
|
|
Creates a console for a server.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 04:00:05 +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
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-05-17 10:28:31 -04:00
|
|
|
|
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-10-10 14:50:17 -04:00
|
|
|
If successful, this method does not return a response body.
|
2016-05-17 10:28:31 -04:00
|
|
|
|
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Show Console Details
|
|
|
|
====================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /servers/{server_id}/consoles/{console_id}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-03-27 09:22:10 +00:00
|
|
|
Shows console details for a server.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 04:00:05 +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
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-04-12 09:03:46 -04:00
|
|
|
- console_id: console_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-17 10:28:31 -04:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- console: console
|
|
|
|
- console_type: console_type
|
|
|
|
- host: console_host
|
|
|
|
- id: console_id_in_body
|
|
|
|
- instance_name: instance_name
|
|
|
|
- password: console_password
|
2016-10-11 08:28:13 +09:00
|
|
|
- port: port_number
|
2016-05-17 10:28:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Example Show Console Details**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-20 08:42:24 -04:00
|
|
|
.. literalinclude:: ../../doc/api_samples/consoles/consoles-get-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2016-05-17 10:28:31 -04:00
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Delete Console
|
|
|
|
==============
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: DELETE /servers/{server_id}/consoles/{console_id}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-03-27 09:22:10 +00:00
|
|
|
Deletes a console for a server.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 202
|
|
|
|
|
2016-04-25 04:00:05 +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
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-10-31 15:45:05 -04:00
|
|
|
- console_id: console_id
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
|
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-10-10 14:50:17 -04:00
|
|
|
If successful, this method does not return a response body.
|
2016-05-17 10:28:31 -04:00
|
|
|
|
|
|
|
|
2016-07-12 17:20:47 +03:00
|
|
|
Show Console Connection Information
|
|
|
|
===================================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-12 17:20:47 +03:00
|
|
|
.. rest_method:: GET /os-console-auth-tokens/{console_token}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-03-27 09:22:10 +00:00
|
|
|
Given the console authentication token for a server,
|
2016-05-17 10:28:31 -04:00
|
|
|
shows the related connection information.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-12-10 15:53:15 +08:00
|
|
|
This method used to be available only for the ``rdp-html5`` console type before
|
|
|
|
microversion 2.31. Starting from microversion 2.31 it's available for all
|
|
|
|
console types.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 04:00:05 +08:00
|
|
|
Error response codes: badRequest(400), 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
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
|
2016-07-12 17:20:47 +03:00
|
|
|
- console_token: console_token
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-17 10:28:31 -04:00
|
|
|
|
|
|
|
|
|
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-17 10:28:31 -04:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- console: console
|
2016-07-12 17:20:47 +03:00
|
|
|
- instance_uuid: instance_id_body
|
2016-05-17 10:28:31 -04:00
|
|
|
- host: console_host
|
2016-07-12 17:20:47 +03:00
|
|
|
- port: port_number
|
2016-05-17 10:28:31 -04:00
|
|
|
- internal_access_path: internal_access_path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Example Show Console Authentication Token**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-20 10:35:37 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-console-auth-tokens/get-console-connect-info-get-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|