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

アタッチ済みポート一覧取得

Description

サーバーにアタッチ済みのポート一覧を取得します。

Request URL

Compute API v2.0
GET /v2/{tenant_id}/servers/{server_id}/os-interface

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/os-interface

Response

HTTP/1.1 200 OK
Date: Fri, 08 Jul 2016 01:55:05 GMT
Server: Apache
Content-Length: 286
Content-Type: application/json

{
    “interfaceAttachments”: [
        {
            “fixed_ips”: [
                {
                    “ip_address”: “IPアドレス“,
                     “subnet_id”: “サブネットID
                }
            ],
             “mac_addr”: “MACアドレス“,
             “net_id”: “ネットワークID“,
             “port_id”: “ポートID“,
             “port_state”: “ポートの状態
        }
    ] }