@Beta
public interface PortApi
Modifier and Type | Method and Description |
---|---|
Port |
create(Port.CreatePort port)
Create a new port in the specified network
|
com.google.common.collect.FluentIterable<Port> |
createBulk(List<Port.CreatePort> ports)
Create multiple ports
|
boolean |
delete(String id)
Delete a port
|
Port |
get(String id)
Returns the specific port
|
PagedIterable<Port> |
list()
Returns the list of all ports currently defined in Neutron for the current tenant.
|
Ports |
list(PaginationOptions options) |
Port |
update(String id,
Port.UpdatePort port)
Update a port
|
@Named(value="port:list") PagedIterable<Port> list()
@Named(value="port:list") Ports list(PaginationOptions options)
@Named(value="port:get") @Nullable Port get(String id)
id
- the id of the port to return@Named(value="port:create") Port create(Port.CreatePort port)
port
- the port details@Named(value="port:createBulk") com.google.common.collect.FluentIterable<Port> createBulk(List<Port.CreatePort> ports)
ports
- the bulk of ports to create@Named(value="port:update") Port update(String id, Port.UpdatePort port)
id
- the id of the port to updateport
- CreatePort with just the attributes to update@Named(value="port:delete") boolean delete(String id)
id
- the id of the port to deleteCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.