Get VNC console for an instance

Method URI Description
POST /v2/{tenant_id}/servers/{server_id}/action Gets vnc console url for a server instance.

Normal response codes: 200

Request

This table shows the URI parameters for the get vnc console url for an instance request:

Name Type Description
{tenant_id} String Project ID
{server_id} UUID The UUID for the server of interest to you.

This table shows the body parameters for the get vnc console url for an instance request:

Name Type Description
type String The type of VNC console. The correct value is novnc.

Example. Get vnc console: JSON request


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

Response

Example. Get vnc console: JSON response


{
         "console": {
               "type": "novnc",
               "url": "http://127.0.0.1:6080/vnc_auto.html?token=191996c3-7b0f-42f3-95a7-f1839f2da6ed"
         }
}