Class ListImageOptions

  • All Implemented Interfaces:
    HttpRequestOptions

    public class ListImageOptions
    extends PaginationOptions

    Usage The recommended way to instantiate a ListImageOptions object is to statically import ListImageOptions.Builder.* and invoke a static creation method for each option as needed:

    import static org.jclouds.openstack.glance.v1_0.options.ListImageOptions.Builder.* // this will list the first 10 images with the name "name", minimum required disk of 5GB. list = api.list(name("newName"), limit(10), minDisk(5));

    • Constructor Detail

      • ListImageOptions

        public ListImageOptions()
    • Method Detail

      • marker

        public ListImageOptions marker​(String marker)
        Description copied from class: PaginationOptions
        The marker parameter is the ID of the last item in the previous list. Items are sorted by create time in descending order. When a create time is not available they are sorted by ID.
        Overrides:
        marker in class PaginationOptions
      • limit

        public ListImageOptions limit​(int limit)
        Description copied from class: PaginationOptions
        To reduce load on the service, list operations will return a maximum of 1,000 items at a time. To navigate the collection, the parameters limit and offset can be set in the URI (e.g.?limit=0&offset=0). If an offset is given beyond the end of a list an empty list will be returned.

        Note that list operations never return itemNotFound (404) faults.

        Overrides:
        limit in class PaginationOptions
      • name

        public ListImageOptions name​(String name)
        Return only those images having a matching name attribute
      • containerFormat

        public ListImageOptions containerFormat​(ContainerFormat containerFormat)
        Return only those images having a matching container format
      • diskFormat

        public ListImageOptions diskFormat​(DiskFormat diskFormat)
        Return only those images having a matching disk format
      • minRam

        public ListImageOptions minRam​(long ram)
        Return only those images having a matching min ram size
      • minDisk

        public ListImageOptions minDisk​(long disk)
        Return only those images having a matching min disk size
      • minSize

        public ListImageOptions minSize​(long size)
        Return those images that have a size attribute greater than or equal to size
      • maxSize

        public ListImageOptions maxSize​(long size)
        Return those images that have a size attribute less than or equal to size
      • isPublic

        public ListImageOptions isPublic​(boolean isPublic)
        Return only public images or only private images
      • isProtected

        public ListImageOptions isProtected​(boolean isProtected)
        Filter to only protected or unprotected images
      • sortAscending

        public ListImageOptions sortAscending()
        Ascending sort order (smallest first).

        NOTE: default behavior is to sort descending (largest first)