| Modifier and Type | Field and Description |
|---|---|
static String |
GUEST_MASK |
static String |
NOTES_MASK |
| Modifier and Type | Method and Description |
|---|---|
VirtualGuest |
createVirtualGuest(VirtualGuest virtualGuest)
Enables the creation of computing instances on an account.
|
boolean |
deleteVirtualGuest(long id)
Delete a computing instance
|
ContainerVirtualGuestConfiguration |
getCreateObjectOptions()
Determine options available when creating a computing instance
|
VirtualGuest |
getNotes(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).
|
VirtualGuest |
getVirtualGuest(long id) |
VirtualGuest |
getVirtualGuestFiltered(long id,
String filter)
Returns a
VirtualGuest with only the fields listed in the filter string. |
void |
pauseVirtualGuest(long id)
Pause the guest.
|
void |
rebootHardVirtualGuest(long id)
Hard reboot the guest.
|
void |
resumeVirtualGuest(long id)
Resume the guest.
|
boolean |
setNotes(long id,
String notes)
Set notes (visible in UI)
|
boolean |
setTags(long id,
Set<String> tags)
Set the tags on the instance
|
static final String GUEST_MASK
static final String NOTES_MASK
@Named(value="VirtualGuests:create") @POST @Path(value="SoftLayer_Virtual_Guest") @Produces(value="application/json") VirtualGuest createVirtualGuest(VirtualGuest virtualGuest)
@Named(value="VirtualGuests:get")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/getObject")
VirtualGuest getVirtualGuest(@PathParam(value="id")
long id)
@Named(value="VirtualGuests:get")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/getObject")
VirtualGuest getVirtualGuestFiltered(@PathParam(value="id")
long id,
@QueryParam(value="objectMask")
String filter)
VirtualGuest with only the fields listed in the filter string.@Named(value="VirtualGuests:delete")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/deleteObject")
boolean deleteVirtualGuest(@PathParam(value="id")
long id)
@Named(value="VirtualGuests:getCreateObjectOptions") @GET @Path(value="/SoftLayer_Virtual_Guest/getCreateObjectOptions") ContainerVirtualGuestConfiguration getCreateObjectOptions()
@Named(value="VirtualGuest:rebootHard")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/rebootHard.json")
void rebootHardVirtualGuest(@PathParam(value="id")
long id)
id - id of the virtual guest@Named(value="VirtualGuest:pause")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/pause.json")
void pauseVirtualGuest(@PathParam(value="id")
long id)
id - id of the virtual guest@Named(value="VirtualGuest:resume")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/resume.json")
void resumeVirtualGuest(@PathParam(value="id")
long id)
id - id of the virtual guest@Named(value="VirtualGuest:setTags")
@POST
@Path(value="/SoftLayer_Virtual_Guest/{id}/setTags")
@Produces(value="application/json")
boolean setTags(@PathParam(value="id")
long id,
Set<String> tags)
id - id of the virtual guest@Named(value="VirtualGuest:setNotes")
@POST
@Path(value="/SoftLayer_Virtual_Guest/{id}/editObject")
@Produces(value="application/json")
boolean setNotes(@PathParam(value="id")
long id,
String notes)
id - id of the virtual guestnotes - The notes property to set on the machine - visible in UI@Named(value="VirtualGuest:getNotes")
@GET
@Path(value="/SoftLayer_Virtual_Guest/{id}/getObject")
@Produces(value="application/json")
VirtualGuest getNotes(@PathParam(value="id")
long id)
id - id of the virtual guestCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.