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

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 Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン発行 にて払い出されたID
tenant_id テナントID URI API情報を確認する にてご確認ください。
server_id サーバーID URI サーバー一覧取得 にてご確認ください。

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/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": "ポートの状態"
        }
    ]
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.