|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageApi
Provides access to the OpenStack Compute (Nova) Image API.
| Method Summary | |
|---|---|
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. |
org.jclouds.collect.PagedIterable<org.jclouds.openstack.v2_0.domain.Resource> |
list()
List all images (IDs, names, links) |
org.jclouds.openstack.v2_0.domain.PaginatedCollection<org.jclouds.openstack.v2_0.domain.Resource> |
list(org.jclouds.openstack.v2_0.options.PaginationOptions options)
|
org.jclouds.collect.PagedIterable<Image> |
listInDetail()
List all images (all details) |
org.jclouds.openstack.v2_0.domain.PaginatedCollection<Image> |
listInDetail(org.jclouds.openstack.v2_0.options.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. |
| Method Detail |
|---|
@Named(value="image:list") org.jclouds.collect.PagedIterable<org.jclouds.openstack.v2_0.domain.Resource> list()
@Named(value="image:list") org.jclouds.openstack.v2_0.domain.PaginatedCollection<org.jclouds.openstack.v2_0.domain.Resource> list(org.jclouds.openstack.v2_0.options.PaginationOptions options)
@Named(value="image:list") org.jclouds.collect.PagedIterable<Image> listInDetail()
@Named(value="image:list") org.jclouds.openstack.v2_0.domain.PaginatedCollection<Image> listInDetail(org.jclouds.openstack.v2_0.options.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 item
@Named(value="image:deleteMetadata")
void deleteMetadata(String id,
String key)
id - id of the imagekey - the name of the metadata item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||