@Consumes(value="application/json")
@Path(value="/v{jclouds.api-version}/networks")
public interface NetworkApi
Modifier and Type | Method and Description |
---|---|
void |
connectContainerToNetwork(String networkIdOrName,
String containerIdOrName) |
Network |
createNetwork(Network network) |
void |
disconnectContainerFromNetwork(String networkIdOrName,
String containerIdOrName) |
Network |
inspectNetwork(String networkIdOrName)
Return low-level information on the network id
|
List<Network> |
listNetworks() |
void |
removeNetwork(String networkIdOrName) |
@Named(value="networks:list") @GET List<Network> listNetworks()
@Named(value="network:create") @POST @Path(value="/create") Network createNetwork(Network network)
network
- the network’s configuration (@see BindToJsonPayload)@Named(value="network:inspect") @GET @Path(value="/{idOrName}") Network inspectNetwork(@PathParam(value="idOrName") String networkIdOrName)
networkIdOrName
- The id or name of the network to get.null
if the network with the given id doesn't exist.@Named(value="network:delete") @DELETE @Path(value="/{idOrName}") void removeNetwork(@PathParam(value="idOrName") String networkIdOrName)
networkIdOrName
- The id or name of the network to be removed.@Named(value="network:connectContainer") @POST @Path(value="/{idOrName}/connect") void connectContainerToNetwork(@PathParam(value="idOrName") String networkIdOrName, String containerIdOrName)
networkIdOrName
- The id or name of the network where the container will be attached.@Named(value="network:disconnectContainer") @POST @Path(value="/{idOrName}/disconnect") void disconnectContainerFromNetwork(@PathParam(value="idOrName") String networkIdOrName, String containerIdOrName)
networkIdOrName
- The id or name of the network where the container was attached.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.