public interface ImageApi
Modifier and Type | Method and Description |
---|---|
ImageDetails |
create(String name,
Payload payload,
CreateImageOptions... options)
Creates a new image
|
boolean |
delete(String id)
Deletes the image with the specified id
|
ImageDetails |
get(String id)
Returns metadata about an image with id
|
InputStream |
getAsStream(String id)
Returns image data for image with id
|
PagedIterable<Image> |
list()
Lists all images (IDs, names, links)
|
PaginatedCollection<Image> |
list(ListImageOptions options) |
PagedIterable<ImageDetails> |
listInDetail()
Lists all images (all details)
|
PaginatedCollection<ImageDetails> |
listInDetail(ListImageOptions options) |
ImageDetails |
reserve(String name,
CreateImageOptions... options)
Reserves a new image to be uploaded later
|
ImageDetails |
update(String id,
UpdateImageOptions... options)
Adjusts the metadata stored for an existing image
|
ImageDetails |
upload(String id,
Payload imageData,
UpdateImageOptions... options)
Uploads 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.
|
@Named(value="image:list") PagedIterable<Image> list()
@Named(value="image:list") PaginatedCollection<Image> list(ListImageOptions options)
@Named(value="image:listInDetail") PagedIterable<ImageDetails> listInDetail()
@Named(value="image:listInDetail") PaginatedCollection<ImageDetails> listInDetail(ListImageOptions options)
@Named(value="image:get") @Nullable ImageDetails get(String id)
@Named(value="image:getAsStream") @Nullable InputStream getAsStream(String id)
@Named(value="image:create") ImageDetails create(@HeaderParam(value="x-image-meta-name") String name, Payload payload, CreateImageOptions... options)
@Named(value="image:reserve") ImageDetails reserve(@HeaderParam(value="x-image-meta-name") String name, CreateImageOptions... options)
upload(java.lang.String, org.jclouds.io.Payload, org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions...)
@Named(value="image:upload") 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...)
@Named(value="image:update") ImageDetails update(String id, UpdateImageOptions... options)
@Named(value="image:delete") boolean delete(String id)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.