MENU

Description
VNC html5コンソールクライアント(noVNC)の接続 URL を取得します。
noVNC: https://kanaka.github.io/noVNC/

Request URL

Compute API v2.0

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

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id Tenant ID URI テナントID
server_id VM ID URI サーバID
type “novnc” plain type には “novnc” を入力してください(固定値です)。

Request Json

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

Normal response codes

200

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"os-getVNCConsole": {"type": "novnc"}}' \
https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/action
  • RES
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.conoha.io/vnc_auto.html?token=c463c33f-bbf2-47e4-9ecb-5b8a94b5a12d"
    }
}