# glance.image_cache.client module

class glance.image_cache.client.CacheClient(host, port=None, timeout=None, use_ssl=False, auth_token=None, creds=None, doc_root=None, key_file=None, cert_file=None, ca_file=None, insecure=False, configure_via_auth=True)

  Bases: `BaseClient`

  DEFAULT_DOC_ROOT = '/v2'
  DEFAULT_PORT = 9292
  delete_all_cached_images()

    Delete all cached images

  delete_all_queued_images()

    Delete all queued images

  delete_cached_image(image_id)

    Delete a specified image from the cache

  delete_queued_image(image_id)

    Delete a specified image from the cache queue

  get_cached_images(**kwargs)

    Returns a list of images stored in the image cache.

  get_queued_images(**kwargs)

    Returns a list of images queued for caching

  queue_image_for_caching(image_id)

    Queue an image for prefetching into cache

glance.image_cache.client.get_client(host, port=None, timeout=None, use_ssl=False, username=None, password=None, project=None, user_domain_id=None, project_domain_id=None, auth_url=None, auth_strategy=None, auth_token=None, region=None, insecure=False)

  Returns a new client Glance client object based on common kwargs. If an option isn’t specified falls back to common environment variable defaults.

this page last updated: 2026-03-19 01:38:33

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug