• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Port
  6. Show port

Show port

Function Description

This interface is used to query details about a specified port.

Interface Format

Method

URI

Description

GET

/v2.0/ports/{port_id}

Queries details about the specified port.

Restrictions

N/A

Extension Description

N/A

Request Parameter

N/A

Response Parameter

Parameter

Type

Mandatory

Description

port

Dict

Yes

Specifies the port object. For details, see Table 1.

Request Example

GET /v2.0/ports/08db2f8b-8887-4c84-b68b-905582c45c8f

Response Example

{
"port": {
"status": "ACTIVE", 
"allowed_address_pairs": [], 
"extra_dhcp_opts": [], 
"device_owner": "compute:az3.dc1", 
"port_security_enabled":true,
"fixed_ips": [
{
subnet_id": "b3ac1347-63f2-4e82-b853-3d86416a0db5", 
ip_address": "10.1.0.36"
}
], 
"id": "20a2782c-bfb7-4775-a553-9253ab0e3365", 
"security_groups": [
"ef69bc60-2f4b-4f97-b95b-e3b68df0c0b2"
], 
"device_id": "0bd481a0-7dc5-4a3c-bb7b-2553437cd7a5", 
"name": "port_vm_50_2", 
"admin_state_up": true, 
"network_id": "a54e1b19-ce78-4b7e-b28b-d2d716cdc161", "
tenant_id": "6c9298ec8c874f7f99688489ab65f90e", 
"binding:vnic_type": "normal", 
"mac_address": "fa:16:3e:ab:1f:a5"
}
}

Error Code

See section Return Code Processing.