Package org.openstack4j.api.compute
Interface ComputeImageService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
ComputeImageServiceImpl
@Deprecated public interface ComputeImageService extends RestService
Deprecated.These APIs are proxy calls to the Image service. Nova has deprecated all the proxy APIs and users should use the native APIs instead. All the Image services proxy APIs except image metadata APIs will fail with a 404 starting from microversion 2.36. The image metadata APIs will fail with a 404 starting from microversion 2.39.Provides access to Compute Images- Author:
- Jeremy Unruh
- See Also:
ImageService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ActionResponsedelete(String imageId)Deprecated.Deletes an Image based on it's identifiers.ActionResponsedeleteMetaData(String imageId, String... keys)Deprecated.Delete a metadata item from an imageImageget(String imageId)Deprecated.Finds an Image by the givenimageId.Map<String,String>getMetaData(String imageId)Deprecated.Gets the metadata for an imageList<? extends Image>list()Deprecated.Lists Images on an OpenStack Compute EndPoint.List<? extends Image>list(boolean detailed)Deprecated.Lists Images on an OpenStack Compute EndPoint.Map<String,String>setMetaData(String imageId, Map<String,String> metadata)Deprecated.Sets the metadata for an image
-
-
-
Method Detail
-
list
List<? extends Image> list()
Deprecated.Lists Images on an OpenStack Compute EndPoint. By default this method lists in "Detail" which means all major fields are populated for each image. This is equivalent to callinglist(boolean)with {code}true{code}- Returns:
- List of Image
-
list
List<? extends Image> list(boolean detailed)
Deprecated.Lists Images on an OpenStack Compute EndPoint. Ifdetailedis false then onlyImage.getId(),Image.getName()and- Parameters:
detailed- true to populate all properties within each Image, false to include Id, Name and Links only (all other properties will be null)- Returns:
- List of Image
Image.getLinks()will be populated. True will populate all fields
-
get
Image get(String imageId)
Deprecated.Finds an Image by the givenimageId.- Parameters:
imageId- the image identifier- Returns:
- the specified Image
-
delete
ActionResponse delete(String imageId)
Deprecated.Deletes an Image based on it's identifiers. Images created by another user typically cannot be deleted- Parameters:
imageId- the image identifier- Returns:
- the action response
-
getMetaData
Map<String,String> getMetaData(String imageId)
Deprecated.Gets the metadata for an image- Parameters:
imageId- the image identifier- Returns:
- the metadata as Map
-
setMetaData
Map<String,String> setMetaData(String imageId, Map<String,String> metadata)
Deprecated.Sets the metadata for an image- Parameters:
imageId- the image identifiermetadata- a Map containing the metadata- Returns:
- the metadata as Map
-
deleteMetaData
ActionResponse deleteMetaData(String imageId, String... keys)
Deprecated.Delete a metadata item from an image- Parameters:
imageId- the image identifierkeys- one or more keys/metadata names to remove- Returns:
- the action response
-
-