Package org.jclouds.softlayer.features
Interface NetworkApi
-
- All Superinterfaces:
AutoCloseable
,Closeable
@Path("/v{jclouds.api-version}") @Consumes("application/json") public interface NetworkApi extends Closeable
Provides access to Network via their REST API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Network
createNetwork(List<Network.CreateNetwork> networkToBeCreated)
creates a networkSubnet
createSubnet(long id, List<Object> subnetToBeCreated)
creates a subnet on the given networkboolean
deleteNetwork(long id)
deletes a network with the given idboolean
deleteSubnet(long id, List<Subnet.DeleteSubnet> subnetToBeDeleted)
removes the subnet of the given networkboolean
editNetwork(long id, List<Network.EditNetwork> networkToBeEdited)
modifies a network with the given idString
getName(long id)
returns the name of the network of the given idNetwork
getNetwork(long id)
returns the details of the network of the given idString
getNotes(long id)
returns the notes of the network of the given idList<Subnet>
getSubnets(long id)
returns the subnets of the network of the given idList<Network>
listNetworks()
returns a list of networks belong to the account
-
-
-
Field Detail
-
NAME_MASK
static final String NAME_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
listNetworks
@GET @Named("Network:getAlllObjects") @Path("/SoftLayer_Network/getAllObjects") @Produces("application/json") List<Network> listNetworks()
returns a list of networks belong to the account
-
getName
@GET @Named("Network:getName") @Path("/SoftLayer_Network/{id}/getName") @Produces("application/json") String getName(@PathParam("id") long id)
returns the name of the network of the given id
-
getNotes
@GET @Named("Network:getNotes") @Path("/SoftLayer_Network/{id}/getNotes") @Produces("application/json") String getNotes(@PathParam("id") long id)
returns the notes of the network of the given id
-
getNetwork
@GET @Named("Network:getObject") @Path("/SoftLayer_Network/{id}/getObject") @Produces("application/json") Network getNetwork(@PathParam("id") long id)
returns the details of the network of the given id
-
getSubnets
@GET @Named("Network:getSubnets") @Path("/SoftLayer_Network/{id}/getSubnets") @Produces("application/json") List<Subnet> getSubnets(@PathParam("id") long id)
returns the subnets of the network of the given id
-
createNetwork
@POST @Named("network:createObject") @Path("/SoftLayer_Network/createObject") @Produces("application/json") Network createNetwork(List<Network.CreateNetwork> networkToBeCreated)
creates a network
-
editNetwork
@PUT @Named("Network:editObject") @Path("/SoftLayer_Network/{id}/editObject") boolean editNetwork(@PathParam("id") long id, List<Network.EditNetwork> networkToBeEdited)
modifies a network with the given id
-
deleteNetwork
@DELETE @Named("network:deleteObject") @Path("/SoftLayer_Network/{id}") boolean deleteNetwork(@PathParam("id") long id)
deletes a network with the given id
-
createSubnet
@POST @Named("Network:createSubnet") @Path("/SoftLayer_Network/{id}/createSubnet") @Produces("application/json") Subnet createSubnet(@PathParam("id") long id, List<Object> subnetToBeCreated)
creates a subnet on the given network
-
deleteSubnet
@POST @Named("Network:deleteSubnet") @Path("/SoftLayer_Network/{id}/deleteSubnet") @Produces("application/json") boolean deleteSubnet(@PathParam("id") long id, List<Subnet.DeleteSubnet> subnetToBeDeleted)
removes the subnet of the given network
-
-