Interface ImageService

    • Method Detail

      • list

        List<? extends Image> list()
        List all available operating system images
        Returns:
        list of images
      • list

        List<? extends Image> list​(Map<String,​String> filteringParams)
        Returns list of images filtered by parameters. For filtering guidelines, see http://developer.openstack.org/api-ref/image/v2/index.html#show-images To paginate, use "limit" and "marker" parameters
        Parameters:
        filteringParams - map (name, value) of filtering parameters
        Returns:
        list of images fitered by filteringParams
      • listCachedImages

        List<? extends CachedImage> listCachedImages()
        List images currently in the glance image cache.
        Returns:
        list of cached images or empty list if the cache is empty or null if the cache is not enabled.
      • get

        Image get​(String imageId)
        Show details for an image by imageid. The image must exist
        Returns:
        the image
      • create

        Image create​(Image image)
        Creates a catalog record for an operating system disk image.
        Returns:
        Image
      • update

        Image update​(Image image)
        Update image by providing the changed image object.
        Returns:
        image
      • update

        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
        Returns:
        Image
      • delete

        ActionResponse delete​(String imageId)
        Deletes an image. You cannot delete images with the protected attribute set to true (boolean).
      • deactivate

        ActionResponse deactivate​(String imageId)
        Deactivate an image If you try to download a deactivated image, you will receive a 403 (Forbidden) response code. Additionally, only administrative users can view image locations for deactivated images.
      • listMembers

        List<? extends Member> listMembers​(String imageId)
        List members of a particular image. These members are projects or tenants that can see the image.
        Returns:
        List of members
      • listMembers

        List<? extends Member> listMembers​(String imageId,
                                           Map<String,​String> filteringParams)
        List members of a particular image. These members are projects or tenants that can see the image.
        Returns:
        List of members
      • createMember

        Member createMember​(String imageId,
                            String memberId)
        The image must exist, be private, and be owned by the author of the request. Otherwise, this will fail.
        Parameters:
        imageId - the image to share
        Returns:
        member
      • getMember

        Member getMember​(String imageId,
                         String memberId)
        Get details about a member
        Returns:
        member
      • updateMember

        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
        Returns:
        member
      • deleteMember

        ActionResponse deleteMember​(String imageId,
                                    String memberId)
        You must be the owner of the image to delete the member
      • updateTag

        ActionResponse updateTag​(String imageId,
                                 String tag)
        Add tag to image. Can also be done with ImagesService#update(image)
      • deleteTag

        ActionResponse deleteTag​(String imageId,
                                 String tag)
        Delete tag from image. Can also be done with ImagesService#update(image)
      • tasks

        TaskService tasks()
        Returns:
        the image v2 tasks service