3.3.1. Get console

 
MethodURIDescription
POST/v2/{tenant_id}/servers/{server_id}/action

Gets a console for a server instance.

Normal response codes: 200

 3.3.1.1. Request

This table shows the URI parameters for the get console request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

{server_id}

​U​U​ID

The UUID for the server of interest to you.

 

Example 3.38. Get console: JSON request

{
    "os-getVNCConsole": {
        "type": "novnc"
    }
}

 

Example 3.39. Get console: XML request

<?xml version="1.0" encoding="UTF-8"?>
<os-getVNCConsole type="novnc" />

This operation does not require a request body.

 3.3.1.2. Response

 

Example 3.40. Get console: JSON response

{
   "console":{
      "type":"novnc",
      "url":"http://example.com:6080/vnc_auto.html?token=f9906a48-b71e-4f18-baca-c987da3ebdb3&title=dafa(75ecef58-3b8e-4659-ab3b-5501454188e9)"
   }
}

 

Example 3.41. Get console: XML response

<?xml version='1.0' encoding='UTF-8'?>
<console>
  <type>novnc</type>
  <url>http://example.com:6080/vnc_auto.html?token=f9906a48-b71e-4f18-baca-c987da3ebdb3</url>
</console>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...