@Path(value="/droplets") @Consumes(value="application/json") public interface DropletApi extends Closeable
DropletApi| Modifier and Type | Interface and Description |
|---|---|
static class |
DropletApi.ParseBackups |
static class |
DropletApi.ParseDropletActions |
static class |
DropletApi.ParseDroplets |
static class |
DropletApi.ParseKernels |
static class |
DropletApi.ParseSnapshots |
| Modifier and Type | Method and Description |
|---|---|
DropletCreate |
create(String name,
String region,
String size,
String image) |
DropletCreate |
create(String name,
String region,
String size,
String image,
CreateDropletOptions options) |
void |
delete(int id) |
Droplet |
get(int id) |
PagedIterable<Droplet> |
list() |
IterableWithMarker<Droplet> |
list(ListOptions options) |
PagedIterable<Action> |
listActions(int id) |
IterableWithMarker<Action> |
listActions(int id,
ListOptions options) |
PagedIterable<Backup> |
listBackups(int id) |
IterableWithMarker<Backup> |
listBackups(int id,
ListOptions options) |
PagedIterable<Kernel> |
listKernels(int id) |
IterableWithMarker<Kernel> |
listKernels(int id,
ListOptions options) |
PagedIterable<Snapshot> |
listSnapshots(int id) |
IterableWithMarker<Snapshot> |
listSnapshots(int id,
ListOptions options) |
Action |
powerCycle(int id) |
Action |
powerOff(int id) |
Action |
powerOn(int id) |
Action |
reboot(int id) |
Action |
shutdown(int id) |
Action |
snapshot(int id,
String name) |
@Named(value="droplet:list") @GET PagedIterable<Droplet> list()
@Named(value="droplet:list") @GET IterableWithMarker<Droplet> list(ListOptions options)
@Named(value="droplet:listkernels")
@GET
@Path(value="/{id}/kernels")
PagedIterable<Kernel> listKernels(@PathParam(value="id")
int id)
@Named(value="droplet:listkernels")
@GET
@Path(value="/{id}/kernels")
IterableWithMarker<Kernel> listKernels(@PathParam(value="id")
int id,
ListOptions options)
@Named(value="droplet:listsnapshots")
@GET
@Path(value="/{id}/snapshots")
PagedIterable<Snapshot> listSnapshots(@PathParam(value="id")
int id)
@Named(value="droplet:listsnapshots")
@GET
@Path(value="/{id}/snapshots")
IterableWithMarker<Snapshot> listSnapshots(@PathParam(value="id")
int id,
ListOptions options)
@Named(value="droplet:listbackups")
@GET
@Path(value="/{id}/backups")
PagedIterable<Backup> listBackups(@PathParam(value="id")
int id)
@Named(value="droplet:listbackups")
@GET
@Path(value="/{id}/backups")
IterableWithMarker<Backup> listBackups(@PathParam(value="id")
int id,
ListOptions options)
@Named(value="droplet:actions")
@GET
@Path(value="/{id}/actions")
PagedIterable<Action> listActions(@PathParam(value="id")
int id)
@Named(value="droplet:actions")
@GET
@Path(value="/{id}/actions")
IterableWithMarker<Action> listActions(@PathParam(value="id")
int id,
ListOptions options)
@Named(value="droplet:create") @POST @Produces(value="application/json") DropletCreate create(String name, String region, String size, String image)
@Named(value="droplet:create") @POST @Produces(value="application/json") DropletCreate create(String name, String region, String size, String image, CreateDropletOptions options)
@Named(value="droplet:get")
@GET
@Path(value="/{id}")
@Nullable
Droplet get(@PathParam(value="id")
int id)
@Named(value="droplet:delete")
@DELETE
@Path(value="/{id}")
void delete(@PathParam(value="id")
int id)
@Named(value="droplet:reboot")
@POST
@Produces(value="application/json")
@Path(value="/{id}/actions")
Action reboot(@PathParam(value="id")
int id)
@Named(value="droplet:powercycle")
@POST
@Produces(value="application/json")
@Path(value="/{id}/actions")
Action powerCycle(@PathParam(value="id")
int id)
@Named(value="droplet:shutdown")
@POST
@Produces(value="application/json")
@Path(value="/{id}/actions")
Action shutdown(@PathParam(value="id")
int id)
@Named(value="droplet:poweroff")
@POST
@Produces(value="application/json")
@Path(value="/{id}/actions")
Action powerOff(@PathParam(value="id")
int id)
@Named(value="droplet:poweron")
@POST
@Produces(value="application/json")
@Path(value="/{id}/actions")
Action powerOn(@PathParam(value="id")
int id)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.