VNCコンソール

Description

VNC HTML5 コンソールクライアント(noVNC)の接続URLを取得します。
noVNC: https://kanaka.github.io/noVNC/
noVNC server自体は弊社が提供するものを利用します。

Request URL

Compute API v2

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

Request Json

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

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークン発行 にて払い出されたID
tenant_id テナントID URI コントロールパネルにてAPI情報をご確認ください。
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"}}' \
サーバー操作エンドポイント/servers/サーバーID/action
  • Response
{
    "console": {
        "url": "https://vnc.jpt1.cnode.io/vnc_auto.html?token=************************************",
        "type": "novnc"
    }
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.