@Path(value="/subnets")
@Consumes(value="application/json")
@Produces(value="application/json")
public interface SubnetApi
Modifier and Type | Method and Description |
---|---|
Subnet |
create(Subnet.CreateSubnet subnet)
Create a subnet within a specified network
|
com.google.common.collect.FluentIterable<Subnet> |
createBulk(List<Subnet.CreateSubnet> subnets)
Create multiple subnets
|
boolean |
delete(String id)
Delete a subnet
|
Subnet |
get(String id)
Returns the specific Subnet.
|
PagedIterable<Subnet> |
list()
Returns the list of all subnets currently defined in Neutron for the current tenant.
|
Subnets |
list(PaginationOptions options) |
Subnet |
update(String id,
Subnet.UpdateSubnet subnet)
Update a subnet
|
@Named(value="subnet:list") @GET PagedIterable<Subnet> list()
@Named(value="subnet:list") @GET Subnets list(PaginationOptions options)
@Named(value="subnet:get") @GET @Path(value="/{id}") @Nullable Subnet get(@PathParam(value="id") String id)
id
- the id of the subnet to return@Named(value="subnet:create") @POST Subnet create(Subnet.CreateSubnet subnet)
subnet
- the subnet to be created@Named(value="subnet:createBulk") @POST com.google.common.collect.FluentIterable<Subnet> createBulk(List<Subnet.CreateSubnet> subnets)
subnets
- the bulk of subnets to create@Named(value="subnet:update") @PUT @Path(value="/{id}") Subnet update(@PathParam(value="id") String id, Subnet.UpdateSubnet subnet)
id
- the id of the subnet to update@Named(value="subnet:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String id)
id
- the id of the subnet to deleteCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.