Interface DropletApi
-
- All Superinterfaces:
AutoCloseable
,Closeable
@Path("/droplets") @Consumes("application/json") public interface DropletApi extends Closeable
Provides access to Droplets via their REST API.- See Also:
- ,
DropletApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DropletApi.ParseBackups
static class
DropletApi.ParseDropletActions
static class
DropletApi.ParseDroplets
static class
DropletApi.ParseKernels
static class
DropletApi.ParseSnapshots
-
Method Summary
-
-
-
Method Detail
-
list
@Named("droplet:list") @GET PagedIterable<Droplet> list()
-
list
@Named("droplet:list") @GET IterableWithMarker<Droplet> list(ListOptions options)
-
listKernels
@Named("droplet:listkernels") @GET @Path("/{id}/kernels") PagedIterable<Kernel> listKernels(@PathParam("id") int id)
-
listKernels
@Named("droplet:listkernels") @GET @Path("/{id}/kernels") IterableWithMarker<Kernel> listKernels(@PathParam("id") int id, ListOptions options)
-
listSnapshots
@Named("droplet:listsnapshots") @GET @Path("/{id}/snapshots") PagedIterable<Snapshot> listSnapshots(@PathParam("id") int id)
-
listSnapshots
@Named("droplet:listsnapshots") @GET @Path("/{id}/snapshots") IterableWithMarker<Snapshot> listSnapshots(@PathParam("id") int id, ListOptions options)
-
listBackups
@Named("droplet:listbackups") @GET @Path("/{id}/backups") PagedIterable<Backup> listBackups(@PathParam("id") int id)
-
listBackups
@Named("droplet:listbackups") @GET @Path("/{id}/backups") IterableWithMarker<Backup> listBackups(@PathParam("id") int id, ListOptions options)
-
listActions
@Named("droplet:actions") @GET @Path("/{id}/actions") PagedIterable<Action> listActions(@PathParam("id") int id)
-
listActions
@Named("droplet:actions") @GET @Path("/{id}/actions") IterableWithMarker<Action> listActions(@PathParam("id") int id, ListOptions options)
-
create
@Named("droplet:create") @POST @Produces("application/json") DropletCreate create(String name, String region, String size, String image)
-
create
@Named("droplet:create") @POST @Produces("application/json") DropletCreate create(String name, String region, String size, String image, CreateDropletOptions options)
-
delete
@Named("droplet:delete") @DELETE @Path("/{id}") void delete(@PathParam("id") int id)
-
reboot
@Named("droplet:reboot") @POST @Produces("application/json") @Path("/{id}/actions") Action reboot(@PathParam("id") int id)
-
powerCycle
@Named("droplet:powercycle") @POST @Produces("application/json") @Path("/{id}/actions") Action powerCycle(@PathParam("id") int id)
-
shutdown
@Named("droplet:shutdown") @POST @Produces("application/json") @Path("/{id}/actions") Action shutdown(@PathParam("id") int id)
-
powerOff
@Named("droplet:poweroff") @POST @Produces("application/json") @Path("/{id}/actions") Action powerOff(@PathParam("id") int id)
-
powerOn
@Named("droplet:poweron") @POST @Produces("application/json") @Path("/{id}/actions") Action powerOn(@PathParam("id") int id)
-
-