/** * Resume a server. * * @param id id of the server */ @Named("serverAdmin:resume") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"resume\":null}") void resume(@PathParam("id") String id);
/** * Unlock a server. * * @param id id of the server */ @Named("serverAdmin:unlock") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"unlock\":null}") void unlock(@PathParam("id") String id);
/** * Inject network info into a server. * * @param id id of the server */ @Named("serverAdmin:injectNetwork") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"injectNetworkInfo\":null}") void injectNetworkInfo(@PathParam("id") String id); }
/** * @see ServerApi#start */ @Named("server:start") @POST @Path("/servers/{id}/action") @Consumes @Produces(MediaType.APPLICATION_JSON) @Payload("{\"os-start\":null}") ListenableFuture<Void> start(@PathParam("id") String id);
/** * @see ServerApi#confirmResize */ @Named("server:resize") @POST @Path("/servers/{id}/action") @Consumes @Produces(MediaType.APPLICATION_JSON) @Payload("{\"confirmResize\":null}") ListenableFuture<Void> confirmResize(@PathParam("id") String id);
/** * @see ServerApi#revertResize */ @Named("server:resize") @POST @Path("/servers/{id}/action") @Consumes @Produces(MediaType.APPLICATION_JSON) @Payload("{\"revertResize\":null}") ListenableFuture<Void> revertResize(@PathParam("id") String id);
/** * Stop a server * * @param id * id of the server */ @Named("server:stop") @POST @Path("/{id}/action") @Produces(MediaType.APPLICATION_JSON) @Payload("{\"os-stop\":null}") void stop(@PathParam("id") String id);
/** * Confirm a resize operation. * * @param id * id of the server */ @Named("server:confirmResize") @POST @Path("/{id}/action") @Produces(MediaType.APPLICATION_JSON) @Payload("{\"confirmResize\":null}") void confirmResize(@PathParam("id") String id);
/** * @see ServerApi#stop */ @Named("server:stop") @POST @Path("/servers/{id}/action") @Consumes @Produces(MediaType.APPLICATION_JSON) @Payload("{\"os-stop\":null}") ListenableFuture<Void> stop(@PathParam("id") String id);
/** * @see ServerApi#stop */ @Named("server:stop") @POST @Path("/servers/{id}/action") @Consumes @Produces(MediaType.APPLICATION_JSON) @Payload("{\"os-stop\":null}") ListenableFuture<Void> stop(@PathParam("id") String id);
/** * @see ServerApi#revertResize */ @Named("server:resize") @POST @Path("/servers/{id}/action") @Consumes @Produces(MediaType.APPLICATION_JSON) @Payload("{\"revertResize\":null}") ListenableFuture<Void> revertResize(@PathParam("id") String id);
/** * Returns the account of the current user. */ @Named("getAccountsListOfUser") @POST @XMLResponseParser(AccountHandler.class) @Payload("<v01:getAccountsListOfUser/>") IdAndName getCurrentAccount();
/** * Returns all traffic controller pools in the zone. * * @throws ResourceNotFoundException * if the zone doesn't exist */ @Named("getLoadBalancingPoolsByZone") @POST @XMLResponseParser(TrafficControllerPoolListHandler.class) @Payload("<v01:getLoadBalancingPoolsByZone><zoneName>{zoneName}</zoneName><lbPoolType>TC</lbPoolType></v01:getLoadBalancingPoolsByZone>") FluentIterable<TrafficControllerPool> list() throws ResourceNotFoundException;
/** * @see ServerAdminApi#resume(String) */ @Named("serveradmin:resume") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"resume\":null}") @Fallback(FalseOnNotFoundOr404.class) ListenableFuture<Boolean> resume(@PathParam("id") String id);
/** * @see ServerAdminApi#migrate(String) */ @Named("serveradmin:migrate") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"migrate\":null}") @Fallback(FalseOnNotFoundOr404.class) ListenableFuture<Boolean> migrate(@PathParam("id") String id);
/** * @see ServerAdminApi#injectNetworkInfo(String) */ @Named("serveradmin:injectnetwork") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"injectNetworkInfo\":null}") @Fallback(FalseOnNotFoundOr404.class) ListenableFuture<Boolean> injectNetworkInfo(@PathParam("id") String id);
/** * Lists the directional regions available in the account. */ @Named("getAvailableRegions") @POST @XMLResponseParser(RegionListHandler.class) @Payload("<v01:getAvailableRegions/>") Multimap<IdAndName, String> getRegionsByIdAndName();
/** * @see CloudServersClient#confirmResizeServer */ @POST @QueryParams(keys = "format", values = "json") @Path("/servers/{id}/action") @Produces(MediaType.APPLICATION_JSON) @Payload("{\"confirmResize\":null}") ListenableFuture<Void> confirmResizeServer(@PathParam("id") int id);
/** * @see CloudServersClient#renameServer */ @PUT @Path("/servers/{id}") @Produces(MediaType.APPLICATION_JSON) @Payload("%7B\"server\":%7B\"name\":\"{name}\"%7D%7D") ListenableFuture<Void> renameServer(@PathParam("id") int id, @PayloadParam("name") String newName);
/** * @see ServerAdminApi#lock(String) */ @Named("serveradmin:lock") @POST @Produces(MediaType.APPLICATION_JSON) @Payload("{\"lock\":null}") @Fallback(FalseOnNotFoundOr404.class) ListenableFuture<Boolean> lock(@PathParam("id") String id);