GET'>
PUT'>
POST'>
DELETE'>
'>
'>
]>
The Allowed Address Pair ExtensionThe Allowed Address Pair extension extends the port
attribute to allow one to specify arbitrary
mac_address/ip_address(cidr) pairs that are allowed to pass
through a port regardness of the subnet associated with the
network.Port API operations with allowed address pair
extensionThis section discusses operations for setting and
retrieving the allowed address pair extension attributes
for port objects.List Ports
Verb
URI
Description
&GET;
/ports
Returns a list of ports with their
allowed address pair attributes.
Normal Response Code: 200 OKError Response Codes: 401 UnauthorizedThis operation returns, for each port, its allowed
address pair attributes as well as all the attributes
normally returned by the list port operation.List Ports with allowed address pair
attributes: JSON ResponseList Ports with allowed address pair
attributes: XML ResponseShow Port
Verb
URI
Description
&GET;
/ports/port_id
Returns details about a specific port,
including allowed address pair
attributes.
Normal Response Code: 200 OKError Response Code: 401 Unauthorized, 404 Not
FoundShow port with allowed address pair attributes:
JSON ResponseShow port with allowed address pair attributes:
XML ResponseCreate Port
Verb
URI
Description
&POST;
/ports
Creates a new port and explicitly
specify the allowed address pair
attributes.
Normal Response Code: 201Error Response Code: 400 Bad Request, 401
Unauthorized, 403 ForbiddenBad 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.Create Port with allowed address pair
attributes: JSON RequestUpdate Port
Verb
URI
Description
&PUT;
/ports/port_id
Updates a port, with new allowed
address pair values.
Normal Response Code: 200 OKError Response Code: 400 Bad Request, 401
Unauthorized, 404 Not Found, 403 ForbiddenUpdate allowed address pair attributes for a
port: JSON Request