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 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 parametersImage get(String imageId)
imageId
- Image create(Image image)
image
- Image update(Image image)
image
- Image update(String imageId, ImageUpdate imageUpdate)
imageId
- imageUpdate
- ActionResponse delete(String imageId)
imageId
- ActionResponse deactivate(String imageId)
imageId
- ActionResponse reactivate(String imageId)
imageId
- List<? extends Member> listMembers(String imageId)
imageId
- List<? extends Member> listMembers(String imageId, Map<String,String> filteringParams)
imageId
- Member createMember(String imageId, String memberId)
imageId
- the image to sharememberId
- Member getMember(String imageId, String memberId)
imageId
- memberId
- Member updateMember(String imageId, String memberId, Member.MemberStatus memberStatus)
imageId
- memberId
- memberStatus
- ActionResponse deleteMember(String imageId, String memberId)
imageId
- memberId
- ActionResponse updateTag(String imageId, String tag)
imageId
- tag
- ActionResponse deleteTag(String imageId, String tag)
imageId
- tag
- ActionResponse upload(String imageId, Payload<?> payload, @Nullable Image image)
imageId
- payload
- image
- ActionResponse download(String imageId, File filename)
imageId
- filename
- TaskService tasks()
Copyright © 2017. All rights reserved.