Description

Request URL

Network API v2.0

GET /v2.0/ports/{port_id}

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
port_id Openstack Port ID URI

Request Json

This operation does not accept a request body.

Normal response codes

200

Example

curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
https://networking.tyo1.cloud.z.com/v2.0/ports/08357e0f-3b36-46f4-8f75-bbdb0bfcaa33
HTTP/1.1 200 OK
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 09:02:52 GMT
Content-Type: application/json
Content-Length: 569
Connection: keep-alive

{
    "port": {
        "status": "ACTIVE",
        "name": "shared-gnct75294078",
        "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"
    }
}