アタッチ済みポート詳細取得

Description

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

Request URL

Compute API v2

GET /v2/{tenant_id}/servers/{server_id}/os-interface/{attachment_id}

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークン発行 にて払い出されたID
tenant_id テナントID URI コントロールパネルにてAPI情報をご確認ください。
server_id サーバーID URI サーバー一覧取得 にて対象サーバーのサーバーIDをご確認ください。
attachment_id ポートID URI アタッチ済みポート一覧取得 にて対象ポートIDをご確認ください。

Response

  • Normal response codes
200

Example

  • Request
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークンID" \
サーバー操作エンドポイント/servers/サーバーID/os-interface/ポートID
  • Response
{
    "interfaceAttachment": {
        "port_state": "ポートの状態",
        "fixed_ips": [
            {
                "subnet_id": "サブネットID",
                "ip_address": "IPアドレス"
            }
        ],
        "port_id": "ポートID",
        "net_id": "ネットワークID",
        "mac_addr": "MACアドレス"
    }
}

Internet for everyone

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