MENU
WebSocket(httpconsole)用のAPI - Compute API v2
Description
WEBシリアルコンソール(http)への接続 URL を取得する
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 | URI | テナントID | |
server_id | URI | サーバID | |
type | plain | serial |
Request Json
{ "os-getWebConsole": { "type": "serial" } }
Normal response codes
200(OK)
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X POST \ -H "Accept: application/json" \ -H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \ -d '{"os-getWebConsole": {"type": "serial"}}' \ https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/action
- RES
HTTP/1.1 200 OK Date: Thu, 26 Mar 2015 07:58:18 GMT Server: Apache Content-Length: 117 Content-Type: application/json { "console": { "type": "serial", "url": "https://sample.example.io/bt/?token=7492c433-65d1-49a7-9f6c-b14d60211c8d" } }