Interface DropletApi
- All Superinterfaces:
AutoCloseable
,Closeable
Provides access to Droplets via their REST API.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
static final class
static final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(int id) get
(int id) list()
list
(ListOptions options) listActions
(int id) listActions
(int id, ListOptions options) listBackups
(int id) listBackups
(int id, ListOptions options) listKernels
(int id) listKernels
(int id, ListOptions options) listSnapshots
(int id) listSnapshots
(int id, ListOptions options) powerCycle
(int id) powerOff
(int id) powerOn
(int id) reboot
(int id) shutdown
(int id)
-
Method Details
-
list
-
list
-
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) -
get
-
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) -
snapshot
-