Show Port

Verb URI Description
GET /ports/port-id Shows information for a specified port.

Normal Response Code: 200

Error Response Codes: Unauthorized (401), Not Found (404)

This operation returns information for the port specified in the request URI.

This operation does not require a request body.

This operation returns a response body.

 

Example 4.29. Show Port: JSON Request

GET /v2.0/ports/ebe69f1e-bc26-4db5-bed0-c0afb4afe3db.json
accept: application/json

 

Example 4.30. Show Port: JSON Response

{
   "port":{
      "admin_state_up":true,
      "device_id":"dhcpacb6d6f0-2d56-5c7a-9905-4c3a3d168f49-abaf2e70-4305-4e8d-ac70-3e4cc5f66a07",
      "device_owner":"network:dhcp",
      "fixed_ips":[
         {
            "ip_address":"10.0.0.2",
            "subnet_id":"3b498f11-0a20-43ed-b992-0e4202d5f930"
         }
      ],
      "id":"ebe69f1e-bc26-4db5-bed0-c0afb4afe3db",
      "mac_address":"fa:16:3e:a9:34:c3",
      "name":"",
      "network_id":"abaf2e70-4305-4e8d-ac70-3e4cc5f66a07",
      "security_groups":[
         "49258a30-81f9-44d7-9440-c60dba50e29e"
      ],
      "status":"ACTIVE",
      "tenant_id":"e4f50856753b4dc6afee5fa6b9b6c550"
   }
}

Log a bug against this page


loading table of contents...