public interface ImageApi
ImageAsyncApi
,
api docModifier and Type | Method and Description |
---|---|
ImageDetails |
create(String name,
Payload imageData,
CreateImageOptions... options)
Create a new image
|
boolean |
delete(String id)
Delete the image with the specified id
|
ImageDetails |
get(String id)
Return metadata about an image with id
|
InputStream |
getAsStream(String id)
Return image data for image with id
|
PagedIterable<? extends Image> |
list()
List all images (IDs, names, links)
|
PaginatedCollection<? extends Image> |
list(ListImageOptions options) |
PagedIterable<? extends ImageDetails> |
listInDetail()
List all images (all details)
|
PaginatedCollection<? extends ImageDetails> |
listInDetail(ListImageOptions options) |
ImageDetails |
reserve(String name,
CreateImageOptions... options)
Reserve a new image to be uploaded later
|
ImageDetails |
update(String id,
UpdateImageOptions... options)
Adjust the metadata stored for an existing image
|
ImageDetails |
upload(String id,
Payload imageData,
UpdateImageOptions... options)
Upload image data for a previously-reserved image
If an image was previously reserved, and thus is in the queued state, then image data can be added using this method.
|
PagedIterable<? extends Image> list()
PaginatedCollection<? extends Image> list(ListImageOptions options)
PagedIterable<? extends ImageDetails> listInDetail()
PaginatedCollection<? extends ImageDetails> listInDetail(ListImageOptions options)
@Nullable ImageDetails get(String id)
@Nullable InputStream getAsStream(String id)
ImageDetails create(String name, Payload imageData, CreateImageOptions... options)
ImageDetails reserve(String name, CreateImageOptions... options)
upload(java.lang.String, org.jclouds.io.Payload, org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions...)
ImageDetails update(String id, UpdateImageOptions... options)
ImageDetails upload(String id, Payload imageData, UpdateImageOptions... options)
imageData
- the new image to uploadoptions
- can be used to adjust the metadata stored for the image in the same callreserve(java.lang.String, org.jclouds.openstack.glance.v1_0.options.CreateImageOptions...)
boolean delete(String id)
Copyright © 2009-2013 jclouds. All Rights Reserved.