Interface DropletApi

    • Method Detail

      • listKernels

        @Named("droplet:listkernels")
        @GET
        @Path("/{id}/kernels")
        PagedIterable<Kernel> listKernels​(@PathParam("id")
                                          int id)
      • listSnapshots

        @Named("droplet:listsnapshots")
        @GET
        @Path("/{id}/snapshots")
        PagedIterable<Snapshot> listSnapshots​(@PathParam("id")
                                              int id)
      • listBackups

        @Named("droplet:listbackups")
        @GET
        @Path("/{id}/backups")
        PagedIterable<Backup> listBackups​(@PathParam("id")
                                          int id)
      • listActions

        @Named("droplet:actions")
        @GET
        @Path("/{id}/actions")
        PagedIterable<Action> listActions​(@PathParam("id")
                                          int id)
      • get

        @Named("droplet:get")
        @GET
        @Path("/{id}")
        @Nullable
        Droplet get​(@PathParam("id")
                    int id)
      • 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

        @Named("droplet:snapshot")
        @POST
        @Produces("application/json")
        @Path("/{id}/actions")
        Action snapshot​(@PathParam("id")
                        int id,
                        String name)