サーバープラン一覧取得
Description
サーバープラン(flavor)の一覧を取得します。
Request URL
Compute API v2
GET v2/{tenant_id}/flavors
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 | plain | コントロールパネルにてAPI情報をご確認ください。 |
| limit(Optional) | 表示件数 | query | 取得する情報の表示件数を指定します。 |
Response
-
Normal response codes
200
Example
-
Request
curl -X GET \ -H "Accept: application/json" \ -H "X-Auth-Token: トークンID" \ サーバー操作エンドポイント/flavors?limit=5
-
Response
{
"flavors": [
{
"id": "フレーバーID",
"name": "gac-N-32120",
"links": [
{
"href": "サーバー操作エンドポイント/flavors/フレーバーID",
"rel": "self"
},
{
"href": "https://compute-r4nd1001.app-sys.jp/テナントID/flavors/フレーバーID",
"rel": "bookmark"
}
]
},
{
"id": "フレーバーID",
"name": "gac-N-0416",
"links": [
{
"href": "サーバー操作エンドポイント/flavors/フレーバーID",
"rel": "self"
},
{
"href": "https://compute-r4nd1001.app-sys.jp/テナントID/flavors/フレーバーID",
"rel": "bookmark"
}
]
},
{
"id": "フレーバーID",
"name": "gac-N-0404",
"links": [
{
"href": "サーバー操作エンドポイント/flavors/フレーバーID",
"rel": "self"
},
{
"href": "https://compute-r4nd1001.app-sys.jp/テナントID/flavors/フレーバーID",
"rel": "bookmark"
}
]
},
{
"id": "フレーバーID",
"name": "gac-N-0860",
"links": [
{
"href": "サーバー操作エンドポイント/flavors/フレーバーID",
"rel": "self"
},
{
"href": "https://compute-r4nd1001.app-sys.jp/テナントID/flavors/フレーバーID",
"rel": "bookmark"
}
]
},
{
"id": "フレーバーID",
"name": "gac-N-3260",
"links": [
{
"href": "サーバー操作エンドポイント/flavors/フレーバーID",
"rel": "self"
},
{
"href": "https://compute-r4nd1001.app-sys.jp/テナントID/flavors/フレーバーID",
"rel": "bookmark"
}
]
}
]
}