Package org.jclouds.softlayer.features
Interface VirtualGuestApi
-
-
Field Summary
Fields Modifier and Type Field Description static StringGUEST_MASKstatic StringNOTES_MASK
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualGuestcreateVirtualGuest(VirtualGuest virtualGuest)Enables the creation of computing instances on an account.booleandeleteVirtualGuest(long id)Delete a computing instanceContainerVirtualGuestConfigurationgetCreateObjectOptions()Determine options available when creating a computing instanceVirtualGuestgetNotes(long id)Get notes (visible in UI) Don't include it in default getObject mask as it can get quite big (up to 1000 chars).VirtualGuestgetVirtualGuest(long id)VirtualGuestgetVirtualGuestFiltered(long id, String filter)Returns aVirtualGuestwith only the fields listed in the filter string.voidpauseVirtualGuest(long id)Pause the guest.voidrebootHardVirtualGuest(long id)Hard reboot the guest.voidresumeVirtualGuest(long id)Resume the guest.booleansetNotes(long id, String notes)Set notes (visible in UI)booleansetTags(long id, Set<String> tags)Set the tags on the instance
-
-
-
Field Detail
-
GUEST_MASK
static final String GUEST_MASK
- See Also:
- Constant Field Values
-
NOTES_MASK
static final String NOTES_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
createVirtualGuest
@Named("VirtualGuests:create") @POST @Path("SoftLayer_Virtual_Guest") @Produces("application/json") VirtualGuest createVirtualGuest(VirtualGuest virtualGuest)Enables the creation of computing instances on an account.
-
getVirtualGuest
@Named("VirtualGuests:get") @GET @Path("/SoftLayer_Virtual_Guest/{id}/getObject") VirtualGuest getVirtualGuest(@PathParam("id") long id)
-
getVirtualGuestFiltered
@Named("VirtualGuests:get") @GET @Path("/SoftLayer_Virtual_Guest/{id}/getObject") VirtualGuest getVirtualGuestFiltered(@PathParam("id") long id, @QueryParam("objectMask") String filter)Returns aVirtualGuestwith only the fields listed in the filter string.
-
deleteVirtualGuest
@Named("VirtualGuests:delete") @GET @Path("/SoftLayer_Virtual_Guest/{id}/deleteObject") boolean deleteVirtualGuest(@PathParam("id") long id)Delete a computing instance
-
getCreateObjectOptions
@Named("VirtualGuests:getCreateObjectOptions") @GET @Path("/SoftLayer_Virtual_Guest/getCreateObjectOptions") ContainerVirtualGuestConfiguration getCreateObjectOptions()Determine options available when creating a computing instance
-
rebootHardVirtualGuest
@Named("VirtualGuest:rebootHard") @GET @Path("/SoftLayer_Virtual_Guest/{id}/rebootHard.json") void rebootHardVirtualGuest(@PathParam("id") long id)Hard reboot the guest.- Parameters:
id- id of the virtual guest
-
pauseVirtualGuest
@Named("VirtualGuest:pause") @GET @Path("/SoftLayer_Virtual_Guest/{id}/pause.json") void pauseVirtualGuest(@PathParam("id") long id)Pause the guest.- Parameters:
id- id of the virtual guest
-
resumeVirtualGuest
@Named("VirtualGuest:resume") @GET @Path("/SoftLayer_Virtual_Guest/{id}/resume.json") void resumeVirtualGuest(@PathParam("id") long id)Resume the guest.- Parameters:
id- id of the virtual guest
-
setTags
@Named("VirtualGuest:setTags") @POST @Path("/SoftLayer_Virtual_Guest/{id}/setTags") @Produces("application/json") boolean setTags(@PathParam("id") long id, Set<String> tags)Set the tags on the instance- Parameters:
id- id of the virtual guest
-
setNotes
@Named("VirtualGuest:setNotes") @POST @Path("/SoftLayer_Virtual_Guest/{id}/editObject") @Produces("application/json") boolean setNotes(@PathParam("id") long id, String notes)Set notes (visible in UI)- Parameters:
id- id of the virtual guestnotes- The notes property to set on the machine - visible in UI
-
getNotes
@Named("VirtualGuest:getNotes") @GET @Path("/SoftLayer_Virtual_Guest/{id}/getObject") @Produces("application/json") VirtualGuest getNotes(@PathParam("id") long id)Get notes (visible in UI) Don't include it in default getObject mask as it can get quite big (up to 1000 chars). Also no place to put it in NodeMetadata.- Parameters:
id- id of the virtual guest
-
-