@Path(value="/v{jclouds.api-version}") @Consumes(value="application/json") public interface NetworkApi extends Closeable
Modifier and Type | Method and Description |
---|---|
Network |
createNetwork(List<Network.CreateNetwork> networkToBeCreated)
creates a network
|
Subnet |
createSubnet(long id,
List<Object> subnetToBeCreated)
creates a subnet on the given network
|
boolean |
deleteNetwork(long id)
deletes a network with the given id
|
boolean |
deleteSubnet(long id,
List<Subnet.DeleteSubnet> subnetToBeDeleted)
removes the subnet of the given network
|
boolean |
editNetwork(long id,
List<Network.EditNetwork> networkToBeEdited)
modifies a network with the given id
|
String |
getName(long id)
returns the name of the network of the given id
|
Network |
getNetwork(long id)
returns the details of the network of the given id
|
String |
getNotes(long id)
returns the notes of the network of the given id
|
List<Subnet> |
getSubnets(long id)
returns the subnets of the network of the given id
|
List<Network> |
listNetworks()
returns a list of networks belong to the account
|
static final String NAME_MASK
@GET @Named(value="Network:getAlllObjects") @Path(value="/SoftLayer_Network/getAllObjects") @Produces(value="application/json") List<Network> listNetworks()
@GET @Named(value="Network:getName") @Path(value="/SoftLayer_Network/{id}/getName") @Produces(value="application/json") String getName(@PathParam(value="id") long id)
@GET @Named(value="Network:getNotes") @Path(value="/SoftLayer_Network/{id}/getNotes") @Produces(value="application/json") String getNotes(@PathParam(value="id") long id)
@GET @Named(value="Network:getObject") @Path(value="/SoftLayer_Network/{id}/getObject") @Produces(value="application/json") Network getNetwork(@PathParam(value="id") long id)
@GET @Named(value="Network:getSubnets") @Path(value="/SoftLayer_Network/{id}/getSubnets") @Produces(value="application/json") List<Subnet> getSubnets(@PathParam(value="id") long id)
@POST @Named(value="network:createObject") @Path(value="/SoftLayer_Network/createObject") @Produces(value="application/json") Network createNetwork(List<Network.CreateNetwork> networkToBeCreated)
@PUT @Named(value="Network:editObject") @Path(value="/SoftLayer_Network/{id}/editObject") boolean editNetwork(@PathParam(value="id") long id, List<Network.EditNetwork> networkToBeEdited)
@DELETE @Named(value="network:deleteObject") @Path(value="/SoftLayer_Network/{id}") boolean deleteNetwork(@PathParam(value="id") long id)
@POST @Named(value="Network:createSubnet") @Path(value="/SoftLayer_Network/{id}/createSubnet") @Produces(value="application/json") Subnet createSubnet(@PathParam(value="id") long id, List<Object> subnetToBeCreated)
@POST @Named(value="Network:deleteSubnet") @Path(value="/SoftLayer_Network/{id}/deleteSubnet") @Produces(value="application/json") boolean deleteSubnet(@PathParam(value="id") long id, List<Subnet.DeleteSubnet> subnetToBeDeleted)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.