# keystone.api.policy module

class keystone.api.policy.EndpointPolicyAssociations

  Bases: `Resource`

  delete(policy_id, endpoint_id)
  get(policy_id, endpoint_id)
  methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'PUT'}

    The methods this view is registered for. Uses the same default (`["GET", "HEAD", "OPTIONS"]`) as `route` and `add_url_rule` by default.

  put(policy_id, endpoint_id)

class keystone.api.policy.EndpointPolicyResource

  Bases: `Resource`

  get(policy_id)
  methods: t.ClassVar[t.Collection[str] | None] = {'GET'}

    The methods this view is registered for. Uses the same default (`["GET", "HEAD", "OPTIONS"]`) as `route` and `add_url_rule` by default.

class keystone.api.policy.PolicyAPI(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)

  Bases: `APIBase`

  resource_mapping = [(<class 'keystone.api.policy.EndpointPolicyResource'>, '/policies/<string:policy_id>/OS-ENDPOINT-POLICY/endpoints', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/policy_endpoints', 'stable', {'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id'})), (<class 'keystone.api.policy.EndpointPolicyAssociations'>, '/policies/<string:policy_id>/OS-ENDPOINT-POLICY/endpoints/<string:endpoint_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/endpoint_policy_association', 'stable', {'endpoint_id': 'https://docs.openstack.org/api/openstack-identity/3/param/endpoint_id', 'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id'})), (<class 'keystone.api.policy.ServicePolicyAssociations'>, '/policies/<string:policy_id>/OS-ENDPOINT-POLICY/services/<string:service_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/service_policy_association', 'stable', {'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id', 'service_id': 'https://docs.openstack.org/api/openstack-identity/3/param/service_id'})), (<class 'keystone.api.policy.ServiceRegionPolicyAssociations'>, '/policies/<string:policy_id>/OS-ENDPOINT-POLICY/services/<string:service_id>/regions/<string:region_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/region_and_service_policy_association', 'stable', {'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id', 'region_id': 'https://docs.openstack.org/api/openstack-identity/3/param/region_id', 'service_id': 'https://docs.openstack.org/api/openstack-identity/3/param/service_id'}))]
  resources = [<class 'keystone.api.policy.PolicyResource'>]

class keystone.api.policy.PolicyResource

  Bases: `ResourceBase`

  collection_key: str = 'policies'
  delete(policy_id)
  get(policy_id=None)
  member_key: str = 'policy'
  methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'PATCH', 'POST'}

    The methods this view is registered for. Uses the same default (`["GET", "HEAD", "OPTIONS"]`) as `route` and `add_url_rule` by default.

  patch(policy_id)
  post()

class keystone.api.policy.ServicePolicyAssociations

  Bases: `Resource`

  delete(policy_id, service_id)
  get(policy_id, service_id)
  methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'PUT'}

    The methods this view is registered for. Uses the same default (`["GET", "HEAD", "OPTIONS"]`) as `route` and `add_url_rule` by default.

  put(policy_id, service_id)

class keystone.api.policy.ServiceRegionPolicyAssociations

  Bases: `Resource`

  delete(policy_id, service_id, region_id)
  get(policy_id, service_id, region_id)
  methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'PUT'}

    The methods this view is registered for. Uses the same default (`["GET", "HEAD", "OPTIONS"]`) as `route` and `add_url_rule` by default.

  put(policy_id, service_id, region_id)

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