Description
Show URL To Cconnect VNC html5 Console Client (no VNC)
noVNC: https://kanaka.github.io/noVNC/
The noVNC server itself is provided by Z.com.
Request URL
Compute API v2.0 POST /v2/{tenant_id}/servers/{server_id}/action
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | User Token | header | |
tenant_id | Tenant ID | URI | |
server_id | VM ID | URI | |
type | “novnc” | plain | Enter "novnc" for type. (It's fixed value.) |
Request Json
{ "os-getVNCConsole": { "type": "novnc" } }
Normal response codes
200
Example
curl -i -X POST \ -H "Accept: application/json" \ -H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \ -d '{"os-getVNCConsole": {"type": "novnc"}}' \ https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/action
HTTP/1.1 200 OK Date: Wed, 10 Dec 2014 04:25:17 GMT Server: Apache Content-Length: 122 Content-Type: text/html; charset=UTF-8 { "console": { "type": "novnc", "url": "https://vnc.tyo1.cloud.z.com/vnc_auto.html?token=c463c33f-bbf2-47e4-9ecb-5b8a94b5a12d" } }