Description
テナントIDとサーバーIDを指定し、指定されたサーバーを再起動します。
Request URL
Compute API v2.0 POST /v2/{tenant_id}/servers/{server_id}/action |
Request Json
{ “reboot”: { “type”: “SOFT” } } |
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークンID |
tenant_id | テナントID | URI | テナントID |
server_id | サーバーID | plain | サーバーID |
type | “SOFT” or “HARD” | plain | 通常停止からの起動(SOFT) or 強制停止からの起動(HARD) |
Response
Normal response codes
202 |
Example
Request
curl -i -X POST \ -H “Accept: application/json” \ -H “X-Auth-Token: トークンID“\ -d ‘{“reboot”: {“type”: “SOFT”}}’\ https://compute.odc01.eva-clouds.com/v2/テナントID/servers/サーバーID/action |
Response
HTTP/1.1 202 Accepted Date: Thu, 07 Jul 2016 04:29:48 GMT Server: Apache Content-Length: 0 Content-Type: application/json |