ユーザーガイド/リファレンスガイド

サーバーに紐づくアドレス一覧

Description

サーバーに紐付くIPアドレス一覧を取得します。

Request URL

Compute API v2.0
GET /v2/{tenant_id}/servers/{server_id}/ips

Request Json

This operation does not accept a request body.

 Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id テナントID URI テナントID
server_id サーバーID URI サーバーID

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.odc01.eva-clouds.com/v2/テナントID/servers/サーバーID/ips

Response

HTTP/1.1 200 OK
Date: Fri, 08 Jul 2016 02:33:48 GMT
Server: Apache
Content-Length: 85
Content-Type: application/json

{
    “addresses”: {
        “ネットワーク名“: [
            {
                “version”: IPアドレスのバージョン,
                “addr”: “IPアドレス
            }
        ]     }
}