Show Port

Verb URI Description
GET /ports/port_id Returns details about a specific port, including allowed address pair attributes.

Normal Response Code: 200 OK

Error Response Code: 401 Unauthorized, 404 Not Found

 

Example 4.210. Show port with allowed address pair attributes: JSON Response

{
   "port":
   {
     "admin_state_up": true,
     "allowed_address_pairs": [{"ip_address": "23.23.23.1",
                                "mac_address": "fa:16:3e:c4:cd:3f"}],
     "device_id": "",
     "device_owner": "",
     "fixed_ips": [{"ip_address": "10.0.0.2",
                    "subnet_id": "f4145134-b99b-4b18-9940-47239f071923"}],
     "id": "191f5290-3a5a-40ff-b0cb-cd4b115b400e",
     "mac_address": "fa:16:3e:c4:cd:3f",
     "name": "",
     "network_id": "327f2a2f-9d70-417f-ac3a-d3155e25cf25",
     "status": "DOWN",
     "tenant_id": "8462a4d167f84256b7035f4c408c1185"
   }
}

 

Example 4.211. Show port with allowed address pair attributes: XML Response

<?xml version='1.0' encoding='UTF-8'?>
<port xmlns="http://openstack.org/quantum/api/v2.0"
       xmlns:quantum="http://openstack.org/quantum/api/v2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <status>ACTIVE</status>
    <name />
    <allowed_address_pairs>
        <allowed_address_pair>
            <ip_address>23.23.23.1</ip_address>
            <mac_address>fa:16:3e:c4:cd:3f</mac_address>
        </allowed_address_pair>
    </allowed_address_pairs>
    <admin_state_up quantum:type="bool">True</admin_state_up>
    <network_id>3537e809-8bec-4ae4-a5ab-2c6477760195</network_id>
    <tenant_id>8462a4d167f84256b7035f4c408c1185</tenant_id>
    <device_owner />
    <mac_address>fa:16:3e:21:4c:2e</mac_address>
    <fixed_ips>
        <fixed_ip>
            <subnet_id>f4145134-b99b-4b18-9940-47239f071923</subnet_id>
            <ip_address>10.0.0.21</ip_address>
        </fixed_ip>
    </fixed_ips>
    <id>191f5290-3a5a-40ff-b0cb-cd4b115b400e</id>
    <device_id />
</port>

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...