public interface ImageService extends RestService
| Modifier and Type | Method and Description |
|---|---|
Image |
create(Image image)
Creates a catalog record for an operating system disk image.
|
Member |
createMember(String imageId,
String memberId)
The image must exist, be private, and be owned by the author of the request.
|
ActionResponse |
deactivate(String imageId)
Deactivate an image
If you try to download a deactivated image, you will receive a 403 (Forbidden) response code.
|
ActionResponse |
delete(String imageId)
Deletes an image.
|
ActionResponse |
deleteMember(String imageId,
String memberId)
You must be the owner of the image to delete the member
|
ActionResponse |
deleteTag(String imageId,
String tag)
Delete tag from image.
|
ActionResponse |
download(String imageId,
File filename)
Downloads binary image data
|
Image |
get(String imageId)
Show details for an image by imageid.
|
Member |
getMember(String imageId,
String memberId)
Get details about a member
|
List<? extends Image> |
list()
List all available operating system images
|
List<? extends Image> |
list(Map<String,String> filteringParams)
Returns list of images filtered by parameters.
|
List<? extends CachedImage> |
listCachedImages()
List images currently in the glance image cache.
|
List<? extends Member> |
listMembers(String imageId)
List members of a particular image.
|
List<? extends Member> |
listMembers(String imageId,
Map<String,String> filteringParams)
List members of a particular image.
|
ActionResponse |
reactivate(String imageId)
Reactivate an image
|
TaskService |
tasks() |
Image |
update(Image image)
Update image by providing the changed image object.
|
Image |
update(String imageId,
ImageUpdate imageUpdate)
Update an image by building the string of json operations
that represent the json transformation
instead of the building the whole image
|
Member |
updateMember(String imageId,
String memberId,
Member.MemberStatus memberStatus)
Change status of an image member
For more details see http://specs.openstack.org/openstack/glance-specs/specs/api/v2/sharing-image-api-v2.html
|
ActionResponse |
updateTag(String imageId,
String tag)
Add tag to image.
|
ActionResponse |
upload(String imageId,
Payload<?> payload,
Image image)
Uploads binary image data
|
List<? extends Image> list()
List<? extends Image> list(Map<String,String> filteringParams)
filteringParams - map (name, value) of filtering parametersList<? extends CachedImage> listCachedImages()
Image get(String imageId)
Image create(Image image)
Image update(String imageId, ImageUpdate imageUpdate)
ActionResponse delete(String imageId)
ActionResponse deactivate(String imageId)
ActionResponse reactivate(String imageId)
List<? extends Member> listMembers(String imageId)
List<? extends Member> listMembers(String imageId, Map<String,String> filteringParams)
Member createMember(String imageId, String memberId)
imageId - the image to shareMember getMember(String imageId, String memberId)
Member updateMember(String imageId, String memberId, Member.MemberStatus memberStatus)
ActionResponse deleteMember(String imageId, String memberId)
ActionResponse updateTag(String imageId, String tag)
ActionResponse deleteTag(String imageId, String tag)
ActionResponse upload(String imageId, Payload<?> payload, @Nullable Image image)
ActionResponse download(String imageId, File filename)
TaskService tasks()
Copyright © 2021. All rights reserved.