Package org.jclouds.gogrid.features
Interface GridImageApi
public interface GridImageApi
Manages the server images
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondeleteById
(long id) Deletes an existing imageeditImageDescription
(String idOrName, String newDescription) Edits an existing imageeditImageFriendlyName
(String idOrName, String newFriendlyName) Edits an existing imageRetrieves the list of supported Datacenters to save images in.getImageList
(GetImageListOptions... options) Returns all server images.getImagesById
(Long... ids) Returns images, found by specified idsgetImagesByName
(String... names) Returns images, found by specified namessaveImageFromServer
(String friendlyName, String idOrName, SaveImageOptions... options) This call will save a private (visible to only you) server image to your library of available images.
-
Method Details
-
getImageList
Returns all server images.- Parameters:
options
- options to narrow the search down- Returns:
- server images found
-
getImagesById
Returns images, found by specified ids- Parameters:
ids
- the ids that match existing images- Returns:
- images found
-
getImagesByName
Returns images, found by specified names- Parameters:
names
- the names that march existing images- Returns:
- images found
-
editImageDescription
@GET @Path("/grid/image/edit") ServerImage editImageDescription(@QueryParam("image") String idOrName, @QueryParam("description") String newDescription) Edits an existing image- Parameters:
idOrName
- id or name of the existing imagenewDescription
- description to replace the current one- Returns:
- edited server image
-
editImageFriendlyName
@GET @Path("/grid/image/edit") ServerImage editImageFriendlyName(@QueryParam("image") String idOrName, @QueryParam("friendlyName") String newFriendlyName) Edits an existing image- Parameters:
idOrName
- id or name of the existing imagenewFriendlyName
- friendly name to replace the current one- Returns:
- edited server image
-
getDatacenters
Retrieves the list of supported Datacenters to save images in. The objects will have datacenter ID, name and description. In most cases, id or name will be used forgetImageList(org.jclouds.gogrid.options.GetImageListOptions...)
.- Returns:
- supported datacenters
-
deleteById
Deletes an existing image- Parameters:
id
- id of the existing image
-
saveImageFromServer
@GET @Path("/grid/image/save") ServerImage saveImageFromServer(@QueryParam("friendlyName") String friendlyName, @QueryParam("server") String idOrName, SaveImageOptions... options) This call will save a private (visible to only you) server image to your library of available images. The image will be saved from an existing server.- Parameters:
friendlyName
- friendly name of the imageidOrName
- id or name of the existing server- Returns:
- saved server image
-