MENU

Description

指定された server_id の VM をイメージとして保存する
(スナップショット)

VMは停止されている必要があります。

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 URI サーバID
name (Required) スナップショット名 plain イメージ名
createImage plain

Request Json

{
  "createImage": {
    "name": "example_snap01"
  }
}

Normal response codes

202 Accepted

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

  • REQ
curl -i -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"createImage": {"name": "example_snap01"}}' \
https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/action
  • RES
HTTP/1.1 202 Accepted
Date: Mon, 27 Jul 2015 09:09:47 GMT
Server: Apache
Location: https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/images/34710414-27d1-497b-af9b-afc58f7804a9
Content-Length: 0
Content-Type: text/html; charset=UTF-8