Description

VMプラン(flavor)の詳細一覧を取得します。

Request URL

Compute API

GET /v2/{tenant_id}/flavors/detail

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークンIDを指定します。
tenant_id テナントID path テナントIDを指定します。
limit
(Optional)
表示件数 query 取得する情報の表示件数を指定します。
disk
(Optional)
ギガバイト数 query ディスクのサイズをGB単位で指定します。
minDisk
(Optional)
ギガバイト数 query ディスクの最小サイズ(ギガバイト数)を指定します。
minRam
(Optional)
メガバイト数 query メモリの最小サイズ(メガバイト数)を指定します。

Response Code

Success

200

Example

Request

curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークンID" \
https://compute.tyo1.conoha.io/v2/テナントID/flavors/detail

Response

HTTP/1.1 200 OK
Date: Tue, 09 Dec 2014 02:52:50 GMT
Server: Apache
Content-Length: 3895
Content-Type: application/json

{
    "flavors": [
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "2gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 2048,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 3
        },
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "16gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 16384,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 8
        },
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "4gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 4096,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 4
        },
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "1gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 1024,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 2
        },
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "8gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 8192,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 6
        },
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "32gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 32768,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 12
        },
        {
            "OS-FLV-DISABLED:disabled": false,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 50,
            "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/flavors/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "rel": "bookmark"
                }
            ],
            "name": "64gb-flavor",
            "os-flavor-access:is_public": true,
            "ram": 65536,
            "rxtx_factor": 1,
            "swap": "",
            "vcpus": 24
        }
    ]
}

ConoHaにて提供しておりますAPIにつきましては、クラウド基盤として採用しておりますOpenStackの機能にて実装しておりますので、詳細な情報や使い方はOpenStackのドキュメントにてご確認ください。