Package org.jclouds.packet.features
Interface DeviceApi
-
@Consumes("application/json") public interface DeviceApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DeviceApi.ParseDevices
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Device
create(Device.CreateDevice device)
void
delete(String id)
Device
get(String id)
PagedIterable<Device>
list()
IterableWithMarker<Device>
list(ListOptions options)
void
powerOff(String id)
void
powerOn(String id)
void
reboot(String id)
-
-
-
Method Detail
-
list
@Named("device:list") @GET @Path("/projects/{projectId}/devices") PagedIterable<Device> list()
-
list
@Named("device:list") @GET @Path("/projects/{projectId}/devices") IterableWithMarker<Device> list(ListOptions options)
-
create
@Named("device:create") @POST @Path("/projects/{projectId}/devices") @Produces("application/json") Device create(Device.CreateDevice device)
-
get
@Named("device:get") @GET @Path("/devices/{id}") @Nullable Device get(@PathParam("id") String id)
-
delete
@Named("device:delete") @DELETE @Path("/devices/{id}") void delete(@PathParam("id") String id)
-
powerOff
@Named("device:powerOff") @POST @Produces("application/json") @Path("/devices/{id}/actions") void powerOff(@PathParam("id") String id)
-
powerOn
@Named("device:powerOn") @POST @Produces("application/json") @Path("/devices/{id}/actions") void powerOn(@PathParam("id") String id)
-
reboot
@Named("device:reboot") @POST @Produces("application/json") @Path("/devices/{id}/actions") void reboot(@PathParam("id") String id)
-
-