所有ホストサーバー一覧取得
Description
お客様専用でご契約いただいたホストサーバーの一覧を取得します。
Request URL
Compute API v2.0 GET /v2/{tenant_id}/os-hypervisors
Request Json
This operation does not accept a request body.
Request Parameters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークン発行 にて払い出されたID |
tenant_id | テナントID | URI | API情報を確認する にてご確認ください。 |
Response
-
Normal response codes
200
Example
-
Request
curl -i -X GET \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "X-Auth-Token: トークンID" \ https://compute.jpt1.cloud.z.com/v2/テナントID/os-hypervisors
-
Response
{ "hypervisors": [{ "status": "enabled", "state": "up", "os_type": "linux", "id": ホストID, "hypervisor_hostname": "ホスト名" }] }