MENU
ポート一覧取得 - Network API v2.0
Description
Request URL
Network API v2.0 GET /v2.0/ports
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークン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: 0925897a3d4543218ff0dcd2bb378a8e" \ https://networking.tyo1.conoha.io/v2.0/ports
- RES
HTTP/1.1 200 OK Server: openresty/1.7.10.1 Date: Fri, 08 May 2015 09:00:05 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive { "ports": [ { "status": "ACTIVE", "name": "PORT_NAME", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "69f32dbf-392d-459a-b7d9-6802d55a6d65", "tenant_id": "22394afc818d471ca2f0308c06ae7460", "extra_dhcp_opts": [], "binding:vnic_type": "normal", "device_owner": "compute:None", "mac_address": "fa:16:3e:16:69:ce", "fixed_ips": [ { "subnet_id": "45093c6d-e0cf-4101-943b-c75625a57801", "ip_address": "172.21.139.80" } ], "id": "08357e0f-3b36-46f4-8f75-bbdb0bfcaa33", "security_groups": [ "6cdb77f5-0e85-49cf-b093-acb3ab41e730" ], "device_id": "2a0b45bb-1e14-400e-a386-195f58c47f4e" }, { "status": "DOWN", "name": "PORT_NAME", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "a41e74fa-49ab-494e-8992-f76e68c81cf7", "tenant_id": "22394afc818d471ca2f0308c06ae7460", "extra_dhcp_opts": [], "binding:vnic_type": "normal", "device_owner": "neutron:LOADBALANCER", "mac_address": "fa:16:3e:7b:95:f7", "fixed_ips": [ { "subnet_id": "9c27f83a-ba6d-4e0e-b004-e34422e207a6", "ip_address": "157.7.94.1" } ], "id": "f7b66ca5-4d4b-49bc-bfba-28d7f1bbc711", "security_groups": [ "6cdb77f5-0e85-49cf-b093-acb3ab41e730" ], "device_id": "539ffbcf-a25d-5d5c-857c-859fe991b8ca" } ] }