ConoHa API Documantation

ISOイメージダウンロード - Compute API v2

Description

ISOイメージダウンロードを行う

Request URL

Compute API v2.0

POST /v2/{tenant_id}​/iso-images

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id Tenant ID URI テナントID
url “<iso URL(http,https,ftp,ftps)>” plain iso イメージのダウンロード元(拡張子は .iso であることが必要)

Request Json

{
    "iso-image": {
        "url": "<http_url>" 
    }
}

Normal response codes

200

Example

  • REQ
curl -i -X POST \
-H 'Content-Type: application/json' \
-H "Accept: application/json" \
-H "X-Auth-Token: 3e25a9542daf49c9b07060b6d0f02875" \
-d '{"iso-image":{"url":"ftp://ftp.riken.jp/Linux/centos/6.6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso"}}' \
https://compute.tyo1.conoha.io/v2/3132b110b0d847f3ad5d6ed8d38aabae/iso-images
  • RES
HTTP/1.0 201 CREATED
Content-Type: application/json
Content-Length: 173
Location: http://172.21.20.24:8774/v2/3132b110b0d847f3ad5d6ed8d38aabae/iso-images
Server: Werkzeug/0.8.3 Python/2.6.6
Date: Wed, 18 Mar 2015 11:37:10 GMT

{
  "request": {
    "iso-image": {
      "url": "ftp://ftp.riken.jp/Linux/centos/6.6/isos/x86_64/CentOS-6.6-x86_64-netinstall.iso"
    }
  },
  "user": "3132b110b0d847f3ad5d6ed8d38aabae"
}