public interface PortApi
Modifier and Type | Method and Description |
---|---|
Port |
create(String networkId,
CreatePortOptions... options)
Create a new port in the specified network
|
com.google.common.collect.FluentIterable<? extends Port> |
createBulk(CreatePortBulkOptions ports)
Create multiple ports
|
boolean |
delete(String id)
Delete a port
|
Port |
get(String id)
Returns the specific port
|
PagedIterable<? extends ReferenceWithName> |
list()
Returns the list of all ports currently defined in Neutron for the current tenant.
|
PagedIterable<? extends ReferenceWithName> |
list(PaginationOptions options) |
PagedIterable<? extends Port> |
listInDetail()
Returns the set of ports currently defined in Neutron for the requested network.
|
PagedIterable<? extends Port> |
listInDetail(PaginationOptions options) |
boolean |
update(String id,
UpdatePortOptions... options)
Update a port
|
@Named(value="port:list") PagedIterable<? extends ReferenceWithName> list()
@Named(value="port:list") PagedIterable<? extends ReferenceWithName> list(PaginationOptions options)
@Named(value="port:list") PagedIterable<? extends Port> listInDetail()
@Named(value="port:list") PagedIterable<? extends Port> listInDetail(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(String networkId, CreatePortOptions... options)
networkId
- the id of the network to associate this port withoptions
- optional arguments@Named(value="port:createBulk") com.google.common.collect.FluentIterable<? extends Port> createBulk(CreatePortBulkOptions ports)
ports
- the bulk of ports to create@Named(value="port:update") boolean update(String id, UpdatePortOptions... options)
id
- the id of the port to updateoptions
- the attributes to update@Named(value="port:delete") boolean delete(String id)
id
- the id of the port to deleteCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.