Description
VNC HTML5 コンソールクライアント(noVNC)の接続URLを取得します。
noVNC: https://kanaka.github.io/noVNC/
noVNC server自体は弊社が提供するものを利用します。
Request URL
Compute API v2.0 POST /v2/{tenant_id}/servers/{server_id}/action |
Request Json
{ “os-getVNCConsole”: { “type”: “novnc” } } |
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークンID |
tenant_id | テナントID | URI | テナントID |
server_id | サーバーID | plain | サーバーID |
type | “novnc” | plain | typeには”novnc”を入力してください(固定値) |
Response
Normal response codes
200 |
Example
Request
curl -i -X POST \ -H “Accept: application/json” \ -H “X-Auth-Token: トークンID” \ -d ‘{“os-getVNCConsole”: {“type”: “novnc”}}’\ https://compute.odc01.eva-clouds.com/v2/テナントID/servers/サーバーID/action |
Response
HTTP/1.1 200 OK Date: Thu, 07 Jul 2016 05:34:07 GMT Server: Apache Content-Length: 123 Content-Type: application/json { |