public interface ImageApi
Modifier and Type | Method and Description |
---|---|
void |
delete(String id)
Delete the specified image
|
void |
deleteMetadata(String id,
String key)
Delete a metadata item from an image.
|
Image |
get(String id)
List details of the specified image
|
Map<String,String> |
getMetadata(String id)
List all metadata for an image.
|
String |
getMetadata(String id,
String key)
Update the metadata for an image.
|
PagedIterable<Resource> |
list()
List all images (IDs, names, links)
|
PaginatedCollection<Resource> |
list(PaginationOptions options) |
PagedIterable<Image> |
listInDetail()
List all images (all details)
|
PaginatedCollection<Image> |
listInDetail(PaginationOptions options) |
Map<String,String> |
setMetadata(String id,
Map<String,String> metadata)
Sets the metadata for an image.
|
Map<String,String> |
updateMetadata(String id,
Map<String,String> metadata)
Update the metadata for a server.
|
String |
updateMetadata(String id,
String key,
String value)
Set a metadata item for an image.
|
@Named(value="image:list") PagedIterable<Resource> list()
@Named(value="image:list") PaginatedCollection<Resource> list(PaginationOptions options)
@Named(value="image:list") PagedIterable<Image> listInDetail()
@Named(value="image:list") PaginatedCollection<Image> listInDetail(PaginationOptions options)
@Named(value="image:get") @Nullable Image get(String id)
id
- id of the server@Named(value="image:delete") void delete(String id)
id
- id of the image@Named(value="image:getMetadata") Map<String,String> getMetadata(String id)
id
- id of the image@Named(value="image:setMetadata") Map<String,String> setMetadata(String id, Map<String,String> metadata)
id
- id of the imagemetadata
- a Map containing the metadata@Named(value="image:updateMetadata") Map<String,String> updateMetadata(String id, Map<String,String> metadata)
id
- id of the imagemetadata
- a Map containing the metadata@Named(value="image:getMetadata") @Nullable String getMetadata(String id, String key)
id
- id of the imagemetadata
- a Map containing the metadata@Named(value="image:updateMetadata") @Nullable String updateMetadata(String id, String key, String value)
id
- id of the imagekey
- the name of the metadata itemvalue
- the value of the metadata itemCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.