MENU
アタッチ済みポート一覧取得 - Compute API v2
Description
Request URL
Compute API v2.0 GET /v2/{tenant_id}/servers/{server_id}/os-interface
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークンID |
tenant_id | URI | テナントID | |
server_id | URI | サーバーID |
Request Json
This operation does not accept a request body.
Normal response codes
200
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X GET \ -H "Accept: application/json" \ -H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \ https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/os-interface
- RES
HTTP/1.1 200 OK Date: Wed, 10 Dec 2014 04:31:00 GMT Server: Apache Content-Length: 364 Content-Type: application/json { "interfaceAttachments": [ { "fixed_ips": [ { "ip_address": "133.130.49.xxx", "subnet_id": "0569c47a-d349-4a23-a45b-ae9a50d9d847" }, { "ip_address": "2400:8500:1301:727:133:130:49:xxxx", "subnet_id": "6ead51c1-582a-49ef-8026-203744c8402d" } ], "mac_addr": "02:01:85:82:31:a3", "net_id": "d3ae282c-3c79-4bb6-ae9d-40318bc1059e", "port_id": "51a11bb6-b569-4158-b716-8564a85fb1c4", "port_state": "ACTIVE" } ] }