@Beta
@Path(value="/routers")
@Consumes(value="application/json")
public interface RouterApi
| Modifier and Type | Method and Description |
|---|---|
RouterInterface |
addInterfaceForPort(String routerId,
String portId)
Add a interface to a router to connect to the specified port
|
RouterInterface |
addInterfaceForSubnet(String routerId,
String subnetId)
Add a interface to a router to connect to the specified subnet
|
Router |
create(Router.CreateRouter router)
Create a new router
|
boolean |
delete(String id)
Deletes the specified router
|
Router |
get(String id)
Returns a Routers collection that should contain a single router with the id requested.
|
PagedIterable<Router> |
list()
Returns the list of all routers currently defined in Neutron for the current tenant.
|
Routers |
list(PaginationOptions options) |
boolean |
removeInterfaceForPort(String routerId,
String portId)
Remove the interface where the specified port is connected to
|
boolean |
removeInterfaceForSubnet(String routerId,
String subnetId)
Remove the interface where the specified subnet is connected to
|
Router |
update(String id,
Router.UpdateRouter router)
Update a router
|
@Named(value="router:list") @GET PagedIterable<Router> list()
@Named(value="router:list") @GET Routers list(PaginationOptions options)
@Named(value="router:get")
@GET
@Path(value="/{id}")
@Nullable
Router get(@PathParam(value="id")
String id)
id - the id of the router to return@Named(value="router:create") @POST Router create(Router.CreateRouter router)
router - Options for creating a router@Named(value="router:update")
@PUT
@Path(value="/{id}")
Router update(@PathParam(value="id")
String id,
Router.UpdateRouter router)
id - the id of the router to updaterouter - Contains only the attributes to update@Named(value="router:delete")
@DELETE
@Path(value="/{id}")
boolean delete(@PathParam(value="id")
String id)
id - the id of the router to delete@Named(value="router:addInterfaceForSubnet")
@PUT
@Path(value="/{id}/add_router_interface")
RouterInterface addInterfaceForSubnet(@PathParam(value="id")
String routerId,
String subnetId)
routerId - the id of the router to create the interface atsubnetId - the id of the subnet to connect with the interface@Named(value="router:addInterfaceForPort")
@PUT
@Path(value="/{id}/add_router_interface")
RouterInterface addInterfaceForPort(@PathParam(value="id")
String routerId,
String portId)
routerId - the id of the router to create the interface atportId - the id of the port to connect with the interface@Named(value="router:removeInterfaceForSubnet")
@PUT
@Path(value="/{id}/remove_router_interface")
boolean removeInterfaceForSubnet(@PathParam(value="id")
String routerId,
String subnetId)
routerId - the id of the router to remove the interface fromsubnetId - the id of the subnet to disconnect from the interface@Named(value="router:removeInterfaceForPort")
@PUT
@Path(value="/{id}/remove_router_interface")
boolean removeInterfaceForPort(@PathParam(value="id")
String routerId,
String portId)
routerId - the id of the router to remove the interface fromportId - the id of the port to disconnect from the interfaceCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.