# keystone.policy.backends.sql module

class keystone.policy.backends.sql.Policy

  Bases: `Policy`

  create_policy(policy_id, policy)

    Store a policy blob.

    Raises:

      keystone.exception.Conflict – If a duplicate policy exists.

  delete_policy(policy_id)

    Remove a policy blob.

    Raises:

      keystone.exception.PolicyNotFound – If the policy doesn’t exist.

  get_policy(policy_id)

    Retrieve a specific policy blob.

    Raises:

      keystone.exception.PolicyNotFound – If the policy doesn’t exist.

  list_policies()

    List all policies.

  update_policy(policy_id, policy)

    Update a policy blob.

    Raises:

      keystone.exception.PolicyNotFound – If the policy doesn’t exist.

class keystone.policy.backends.sql.PolicyModel(*args, **kwargs)

  Bases: `Base`, `ModelDictMixinWithExtras`

  attributes: list[str] = ['id', 'blob', 'type']
  blob
  extra
  id
  type

this page last updated: 2026-06-11 21:52:50

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