Create Port

Verb URI Description
POST /ports Creates a new port and explicitly specify the allowed address pair attributes.

Normal Response Code: 201

Error Response Code: 400 Bad Request, 401 Unauthorized, 403 Forbidden

Bad request is returned if an allowed address pair matches the mac_address and ip_address on port.

Note: If the mac_address field is left out of the body of the request the mac_address assigned to the port will be used.

 

Example 4.212. Create Port with allowed address pair attributes: JSON Request

{
 "port":
    {
      "network_id": "3537e809-8bec-4ae4-a5ab-2c6477760195",
      "allowed_address_pairs": [{"ip_address": "10.3.3.3"}]
    }
}


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


loading table of contents...