Modifier and Type | Method and Description |
---|---|
ServerImage |
deleteById(long id)
Deletes an existing image
|
ServerImage |
editImageDescription(String idOrName,
String newDescription)
Edits an existing image
|
ServerImage |
editImageFriendlyName(String idOrName,
String newFriendlyName)
Edits an existing image
|
Set<Option> |
getDatacenters()
Retrieves the list of supported Datacenters to save images in.
|
Set<ServerImage> |
getImageList(GetImageListOptions... options)
Returns all server images.
|
Set<ServerImage> |
getImagesById(Long... ids)
Returns images, found by specified ids
|
Set<ServerImage> |
getImagesByName(String... names)
Returns images, found by specified names
|
ServerImage |
saveImageFromServer(String friendlyName,
String idOrName,
SaveImageOptions... options)
This call will save a private (visible to only you) server image to your
library of available images.
|
@GET @Path(value="/grid/image/list") Set<ServerImage> getImageList(GetImageListOptions... options)
options
- options to narrow the search down@GET @Path(value="/grid/image/get") Set<ServerImage> getImagesById(Long... ids)
ids
- the ids that match existing images@GET @Path(value="/grid/image/get") Set<ServerImage> getImagesByName(String... names)
names
- the names that march existing images@GET @Path(value="/grid/image/edit") ServerImage editImageDescription(@QueryParam(value="image") String idOrName, @QueryParam(value="description") String newDescription)
idOrName
- id or name of the existing imagenewDescription
- description to replace the current one@GET @Path(value="/grid/image/edit") ServerImage editImageFriendlyName(@QueryParam(value="image") String idOrName, @QueryParam(value="friendlyName") String newFriendlyName)
idOrName
- id or name of the existing imagenewFriendlyName
- friendly name to replace the current one@GET @Path(value="/common/lookup/list") Set<Option> getDatacenters()
getImageList(org.jclouds.gogrid.options.GetImageListOptions...)
.@GET @Path(value="/grid/image/delete") ServerImage deleteById(@QueryParam(value="id") long id)
id
- id of the existing image@GET @Path(value="/grid/image/save") ServerImage saveImageFromServer(@QueryParam(value="friendlyName") String friendlyName, @QueryParam(value="server") String idOrName, SaveImageOptions... options)
idOrName
- id or name of the existing serverfriendlyName
- friendly name of the imageCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.