public interface ComputeImageService extends RestService
Modifier and Type | Method and Description |
---|---|
ActionResponse |
delete(String imageId)
Deletes an Image based on it's identifiers.
|
ActionResponse |
deleteMetaData(String imageId,
String... keys)
Delete a metadata item from an image
|
Image |
get(String imageId)
Finds an Image by the given
imageId . |
Map<String,String> |
getMetaData(String imageId)
Gets the metadata for an image
|
List<? extends Image> |
list()
Lists Images on an OpenStack Compute EndPoint.
|
List<? extends Image> |
list(boolean detailed)
Lists Images on an OpenStack Compute EndPoint.
|
Map<String,String> |
setMetaData(String imageId,
Map<String,String> metadata)
Sets the metadata for an image
|
List<? extends Image> list()
list(boolean)
with {code}true{code}List<? extends Image> list(boolean detailed)
detailed
is false then only Image.getId()
, Image.getName()
anddetailed
- true to populate all properties within each Image, false to include Id, Name and Links only (all other properties will be null)Image.getLinks()
will be populated. True will populate all fieldsImage get(String imageId)
imageId
.imageId
- the image identifierActionResponse delete(String imageId)
imageId
- the image identifierMap<String,String> getMetaData(String imageId)
imageId
- the image identifierMap<String,String> setMetaData(String imageId, Map<String,String> metadata)
imageId
- the image identifiermetadata
- a Map containing the metadataActionResponse deleteMetaData(String imageId, String... keys)
imageId
- the image identifierkeys
- one or more keys/metadata names to removeCopyright © 2017. All rights reserved.