MENU

Description

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 Server ID plain サーバID
force_shutdown bool(true or false) plain 強制終了させる場合に指定

Request Json

{
    "os-stop": {"force_shutdown": true}
}

Normal response codes

202

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

  • REQ
curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"os-stop": {"force_shutdown": true}}' \
https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/997d6052-4b17-4500-8d41-c08fb9667aae/action
  • RES
HTTP/1.1 202 Accepted
Date: Thu, 11 Dec 2014 01:05:22 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8