アタッチ済みポート一覧取得
Description
サーバーにアタッチ済みのポート一覧を取得します。
Request URL
Compute API v2
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 | トークンID | header | トークン発行 にて払い出されたID |
| tenant_id | テナントID | URI | コントロールパネルにてAPI情報をご確認ください。 |
| server_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
-
Response
{
"interfaceAttachments": [
{
"port_state": "ポートの状態",
"fixed_ips": [
{
"subnet_id": "サブネットID",
"ip_address": "IPアドレス"
}
],
"port_id": "ポートID",
"net_id": "ネットワークID",
"mac_addr": "MACアドレス"
}
]
}