# glance.db.simple.api module

glance.db.simple.api.clear_db_env(*args, **kwargs)

  Setup global environment configuration variables.

  We have no connection-oriented environment variables, so this is a NOOP.

glance.db.simple.api.configure()

glance.db.simple.api.delete_all_cached_images(context, node_reference_url)

glance.db.simple.api.delete_cached_image(context, image_id, node_reference_url)

glance.db.simple.api.get_cached_images(context, node_reference_url)

glance.db.simple.api.get_cached_nodes(context, image_id)

glance.db.simple.api.get_hit_count(context, image_id, node_reference_url)

glance.db.simple.api.get_least_recently_accessed(context, node_reference_url)

glance.db.simple.api.image_create(context, image_values, v1_mode=False)

glance.db.simple.api.image_delete_property_atomic(image_id, name, value)

glance.db.simple.api.image_destroy(context, image_id)

glance.db.simple.api.image_get(context, image_id, session=None, force_show_deleted=False, v1_mode=False)

glance.db.simple.api.image_get_all(context, filters=None, marker=None, limit=None, sort_key=None, sort_dir=None, member_status='accepted', is_public=None, admin_as_user=False, return_tag=False, v1_mode=False)

glance.db.simple.api.image_location_delete(context, image_id, location_id, status, delete_time=None)

glance.db.simple.api.image_member_count(context, image_id)

  Return the number of image members for this image

  Parameters:

    image_id – identifier of image entity

glance.db.simple.api.image_member_delete(context, member_id)

glance.db.simple.api.image_member_find(context, image_id=None, member=None, status=None, include_deleted=False)

glance.db.simple.api.image_member_update(context, member_id, values)

glance.db.simple.api.image_property_create(context, values)

glance.db.simple.api.image_property_delete(context, prop_ref, image_ref)

glance.db.simple.api.image_restore(context, image_id)

  Restore the pending-delete image to active.

glance.db.simple.api.image_set_property_atomic(image_id, name, value)

glance.db.simple.api.image_tag_delete(context, image_id, value)

glance.db.simple.api.image_tag_get(context, image_id, value)

glance.db.simple.api.image_tag_get_all(context, image_id)

glance.db.simple.api.image_tag_set_all(context, image_id, values)

glance.db.simple.api.image_update(context, image_id, image_values, purge_props=False, from_state=None, v1_mode=False, atomic_props=None)

glance.db.simple.api.insert_cache_details(context, node_reference_url, image_id, size, checksum=None, last_accessed=None, last_modified=None, hits=None)

glance.db.simple.api.is_image_cached_for_node(context, node_reference_url, image_id)

glance.db.simple.api.is_image_visible(context, image, status=None)

glance.db.simple.api.log_call(func)

glance.db.simple.api.metadef_namespace_delete(context, namespace_name)

  Delete a namespace object

glance.db.simple.api.metadef_namespace_delete_content(context, namespace_name)

  Delete a namespace content

glance.db.simple.api.metadef_namespace_get(context, namespace_name)

  Get a namespace object

glance.db.simple.api.metadef_namespace_get_all(context, marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)

  Get a namespaces list

glance.db.simple.api.metadef_namespace_get_by_id(context, namespace_id)

  Get a namespace object

glance.db.simple.api.metadef_object_count(context, namespace_name)

  Get metadef object count in a namespace

glance.db.simple.api.metadef_object_delete(context, namespace_name, object_name)

  Delete a metadef object

glance.db.simple.api.metadef_object_delete_namespace_content(context, namespace_name)

  Delete an object or raise if namespace or object doesn’t exist.

glance.db.simple.api.metadef_object_get(context, namespace_name, object_name)

  Get a metadef object

glance.db.simple.api.metadef_object_get_all(context, namespace_name)

  Get a metadef objects list

glance.db.simple.api.metadef_object_get_by_id(context, namespace_name, object_id)

  Get a metadef object

glance.db.simple.api.metadef_property_count(context, namespace_name)

  Get properties count in a namespace

glance.db.simple.api.metadef_property_delete(context, namespace_name, property_name)

  Delete a metadef property

glance.db.simple.api.metadef_property_delete_namespace_content(context, namespace_name)

  Delete a property or raise if it or namespace doesn’t exist.

glance.db.simple.api.metadef_property_get(context, namespace_name, property_name)

  Get a metadef property

glance.db.simple.api.metadef_property_get_all(context, namespace_name)

  Get a metadef properties list

glance.db.simple.api.metadef_property_get_by_id(context, namespace_name, property_id)

  Get a metadef property

glance.db.simple.api.metadef_resource_type_association_create(context, namespace_name, values)

glance.db.simple.api.metadef_resource_type_association_delete(context, namespace_name, resource_type_name)

glance.db.simple.api.metadef_resource_type_association_get(context, namespace_name, resource_type_name)

glance.db.simple.api.metadef_resource_type_association_get_all_by_namespace(context, namespace_name)

glance.db.simple.api.metadef_resource_type_create(context, values)

  Create a metadef resource type

glance.db.simple.api.metadef_resource_type_get(context, resource_type_name)

  Get a resource type

glance.db.simple.api.metadef_resource_type_get_all(context)

  List all resource types

glance.db.simple.api.metadef_tag_count(context, namespace_name)

  Get metadef tag count in a namespace

glance.db.simple.api.metadef_tag_create_tags(context, namespace_name, tag_list, can_append=False)

  Create a metadef tag

glance.db.simple.api.metadef_tag_delete(context, namespace_name, name)

  Delete a metadef tag

glance.db.simple.api.metadef_tag_delete_namespace_content(context, namespace_name)

  Delete an tag or raise if namespace or tag doesn’t exist.

glance.db.simple.api.metadef_tag_get(context, namespace_name, name)

  Get a metadef tag

glance.db.simple.api.metadef_tag_get_all(context, namespace_name, filters=None, marker=None, limit=None, sort_key='created_at', sort_dir=None, session=None)

  Get a metadef tags list

glance.db.simple.api.metadef_tag_get_by_id(context, namespace_name, id)

  Get a metadef tag

glance.db.simple.api.node_reference_create(context, node_reference_url, **values)

glance.db.simple.api.node_reference_get_by_url(context, node_reference_url)

glance.db.simple.api.reset()

glance.db.simple.api.task_create(context, values)

  Create a task object

glance.db.simple.api.task_delete(context, task_id)

glance.db.simple.api.task_get(context, task_id, force_show_deleted=False)

glance.db.simple.api.task_get_all(context, filters=None, marker=None, limit=None, sort_key='created_at', sort_dir='desc')

  Get all tasks that match zero or more filters.

  Parameters:

    - filters – dict of filter keys and values.

    - marker – task id after which to start page

    - limit – maximum number of tasks to return

    - sort_key – task attribute by which results should be sorted

    - sort_dir – direction in which results should be sorted (asc, desc)

  Returns:

    tasks set

glance.db.simple.api.task_update(context, task_id, values)

  Update a task object

glance.db.simple.api.tasks_get_by_image(context, image_id)

glance.db.simple.api.update_hit_count(context, image_id, node_reference_url)

glance.db.simple.api.user_get_storage_usage(context, owner_id, image_id=None, session=None)

this page last updated: 2026-08-19 03:42:39

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