Package org.jclouds.packet.features
Interface DeviceApi
-
@Consumes("application/json") public interface DeviceApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDeviceApi.ParseDevices
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Devicecreate(Device.CreateDevice device)voiddelete(String id)Deviceget(String id)PagedIterable<Device>list()IterableWithMarker<Device>list(ListOptions options)voidpowerOff(String id)voidpowerOn(String id)voidreboot(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)
-
-