@Beta
@Path(value="/networks")
@Consumes(value="application/json")
@Produces(value="application/json")
public interface NetworkApi
Modifier and Type | Method and Description |
---|---|
Network |
create(Network.CreateNetwork network)
Create a new network with the specified type
|
com.google.common.collect.FluentIterable<Network> |
createBulk(com.google.common.collect.ImmutableList<Network.CreateNetwork> networks)
Create multiple networks
|
boolean |
delete(String id)
Deletes the specified network
|
Network |
get(String id)
Return a specific network
|
PagedIterable<Network> |
list()
Returns all networks currently defined in Neutron for the current tenant.
|
Networks |
list(PaginationOptions options) |
Network |
update(String id,
Network.UpdateNetwork network)
Update a network
|
@Named(value="network:list") @GET PagedIterable<Network> list()
@Named(value="network:list") @GET Networks list(PaginationOptions options)
@Named(value="network:get") @GET @Path(value="/{id}") @Nullable Network get(@PathParam(value="id") String id)
id
- the id of the network to return@Named(value="network:create") @POST Network create(Network.CreateNetwork network)
network
- Describes the network to be created.@Named(value="network:createBulk") @POST com.google.common.collect.FluentIterable<Network> createBulk(com.google.common.collect.ImmutableList<Network.CreateNetwork> networks)
networks
- the bulk of networks to create@Named(value="network:update") @PUT @Path(value="/{id}") Network update(@PathParam(value="id") String id, Network.UpdateNetwork network)
id
- the id of the network to updatenetwork
- the network to update@Named(value="network:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String id)
id
- the id of the network to deleteCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.