ConoHa API Documantation

VM一覧取得 - Compute API v2

Description

Request URL

Compute API v2.0

GET /v2/{tenant_id}/servers

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id URI テナントID
changes-since (Optional) ISO 8601 dateTime (2016-04-04T17:08Z) query 削除されたものを含む、指定時間からのVM一覧
image (Optional) query VMに使用されているイメージID
flavor (Optional) query VMに使用されているフレーバーID
name (Optional) query VM名
marker (Optional) query 表示される最後のUUID
limit (Optional) query VMの表示数
status (Optional) query VMの状態

Request Json

This operation does not accept a request body.

Normal response codes

200

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

  • REQ
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers
  • RES
HTTP/1.1 200 OK
Date: Tue, 09 Dec 2014 03:03:08 GMT
Server: Apache
Content-Length: 691
Content-Type: application/json

{
    "servers": [
        {
            "id": "e25b3611-96df-4514-a54b-7729aec48dc1",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1",
                    "rel": "bookmark"
                }
            ],
            "name": "server1"
        },
        {
            "id": "f41ff26a-06c3-4470-9ed9-f20b6780f98d",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/f41ff26a-06c3-4470-9ed9-f20b6780f98d",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/servers/f41ff26a-06c3-4470-9ed9-f20b6780f98d",
                    "rel": "bookmark"
                }
            ],
            "name": "server2"
        },
        {
            "id": "efbc4dea-e7e3-4890-883c-9a7a5ca9e105",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/efbc4dea-e7e3-4890-883c-9a7a5ca9e105",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/servers/efbc4dea-e7e3-4890-883c-9a7a5ca9e105",
                    "rel": "bookmark"
                }
            ],
            "name": "server3"
        },
        {
            "id": "6d9e8d64-236d-4057-a899-f4cf797405cf",
            "links": [
                {
                    "href": "https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/6d9e8d64-236d-4057-a899-f4cf797405cf",
                    "rel": "self"
                },
                {
                    "href": "https://compute.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/servers/6d9e8d64-236d-4057-a899-f4cf797405cf",
                    "rel": "bookmark"
                }
            ],
            "name": "server4"
        }
    ]
}