# keystone.api.trusts module

class keystone.api.trusts.RoleForTrustResource

  Bases: `Resource`

  get(trust_id, role_id)

    Get a role that has been assigned to a trust.

  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.

  property oslo_context

class keystone.api.trusts.RolesForTrustListResource

  Bases: `Resource`

  get(trust_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.

  property oslo_context

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

  Bases: `APIBase`

  resource_mapping = [(<class 'keystone.api.trusts.TrustsResource'>, '/trusts', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/rel/trusts', 'stable', {})), (<class 'keystone.api.trusts.TrustResource'>, '/trusts/<string:trust_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/rel/trust', 'stable', {'trust_id': 'https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/param/trust_id'})), (<class 'keystone.api.trusts.RolesForTrustListResource'>, '/trusts/<string:trust_id>/roles', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/rel/trust_roles', 'stable', {'trust_id': 'https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/param/trust_id'})), (<class 'keystone.api.trusts.RoleForTrustResource'>, '/trusts/<string:trust_id>/roles/<string:role_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/rel/trust_role', 'stable', {'role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id', 'trust_id': 'https://docs.openstack.org/api/openstack-identity/3/ext/OS-TRUST/1.0/param/trust_id'}))]

class keystone.api.trusts.TrustResource

  Bases: `TrustResourceBase`

  api_prefix: str = '/OS-TRUST'
  collection_key: str = 'trusts'
  delete(trust_id)

    Delete trust.

    DELETE /v3/OS-TRUST/trusts/{trust_id}

  get(trust_id)

    Get trust.

    GET /v3/OS-TRUST/trusts/{trust_id}

  json_home_parameter_rel_func(*, extension_version='1.0', parameter_name)
  json_home_resource_rel_func(*, extension_version='1.0', resource_name)
  member_key: str = 'trust'
  methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', '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.trusts.TrustResourceBase

  Bases: `ResourceBase`

class keystone.api.trusts.TrustsResource

  Bases: `TrustResourceBase`

  api_prefix: str = '/OS-TRUST'
  collection_key: str = 'trusts'
  get()

    Dispatch for LIST trusts.

    GET /v3/OS-TRUST/trusts

  json_home_parameter_rel_func(*, extension_version='1.0', parameter_name)
  json_home_resource_rel_func(*, extension_version='1.0', resource_name)
  member_key: str = 'trust'
  methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}

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

  post()

    Create a new trust.

    The User creating the trust must be the trustor.

    POST /v3/OS-TRUST/trusts

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