keystoneclient.v3.contrib 包

子包

子模块

keystoneclient.v3.contrib.endpoint_filter 模块

keystoneclient.v3.contrib.endpoint_filter.EndpointFilterManager(client)

基类: Manager

用于操作项目-端点关联的管理器类。

项目-端点关联可以是直接与端点关联,也可以通过端点组关联。

OS_EP_FILTER_EXT = '/OS-EP-FILTER'
add_endpoint_group_to_project(endpoint_group, project)

创建项目-端点组关联。

add_endpoint_to_project(project, endpoint)

创建项目-端点关联。

check_endpoint_group_in_project(endpoint_group, project)

检查项目-端点组关联是否存在。

check_endpoint_in_project(project, endpoint)

检查项目-端点关联是否存在。

delete_endpoint_from_project(project, endpoint)

删除项目-端点关联。

delete_endpoint_group_from_project(endpoint_group, project)

删除项目-端点组关联。

list_endpoint_groups_for_project(project)

列出给定项目的全部端点组。

list_endpoints_for_project(project)

列出给定项目的全部端点。

list_projects_for_endpoint(endpoint)

列出给定端点的全部项目。

list_projects_for_endpoint_group(endpoint_group)

列出与给定端点组关联的全部项目。

keystoneclient.v3.contrib.endpoint_policy 模块

keystoneclient.v3.contrib.endpoint_policy.EndpointPolicyManager(client)

基类: Manager

用于操作端点-策略关联的管理器类。

OS_EP_POLICY_EXT = 'OS-ENDPOINT-POLICY'
check_policy_association_for_endpoint(policy, endpoint)

检查策略与端点之间的关联。

check_policy_association_for_region_and_service(policy, region, service)

检查策略与区域中的服务之间的关联。

check_policy_association_for_service(policy, service)

检查策略与服务之间的关联。

create_policy_association_for_endpoint(policy, endpoint)

创建策略与端点之间的关联。

create_policy_association_for_region_and_service(policy, region, service)

创建策略与区域中的服务之间的关联。

create_policy_association_for_service(policy, service)

创建策略与服务之间的关联。

delete_policy_association_for_endpoint(policy, endpoint)

删除策略与端点之间的关联。

delete_policy_association_for_region_and_service(policy, region, service)

删除策略与区域中的服务之间的关联。

delete_policy_association_for_service(policy, service)

删除策略与服务之间的关联。

get_policy_for_endpoint(endpoint)

获取端点的有效策略。

参数:

endpoint – 端点对象或 ID

返回值:

policies.Policy 对象

list_endpoints_for_policy(policy)

列出与策略关联的端点。

参数:

policy – 策略对象或 ID

返回值:

与策略关联的端点列表

keystoneclient.v3.contrib.simple_cert 模块

keystoneclient.v3.contrib.simple_cert.SimpleCertManager(client)

基类: object

OS-SIMPLE-CERT 扩展的管理器。

get_ca_certificates()

获取 CA 证书。

返回值:

PEM 格式的字符串。

返回类型:

str

get_certificates()

获取签名证书。

返回值:

PEM 格式的字符串。

返回类型:

str

keystoneclient.v3.contrib.trusts 模块

keystoneclient.v3.contrib.trusts.Trust(manager, info, loaded=False)

基类: Resource

表示一个 Trust。

属性
  • id: 标识 trust 的 uuid

  • impersonation: 允许显式 impersonation

  • project_id: 项目 ID

  • trustee_user_id: 标识 trustee 的 uuid

  • trustor_user_id: 标识 trustor 的 uuid

keystoneclient.v3.contrib.trusts.TrustManager(client)

基类: CrudManager

用于操作 Trusts 的管理器类。

base_url = '/OS-TRUST'
collection_key = 'trusts'
create(trustee_user, trustor_user, role_names=None, role_ids=None, project=None, impersonation=False, expires_at=None, remaining_uses=None, **kwargs)

创建 Trust。

参数:
  • trustee_user (字符串) – 可以使用 trust 的用户

  • trustor_user (字符串) – 授权被委托的用户

  • role_names (字符串) – 要授予的 trustor 的角色的子集

  • role_ids (字符串) – 要授予的 trustor 的角色的子集

  • project (字符串) – trustor 委托的项目

  • impersonation (布尔值) – 启用显式身份伪装

  • expires_at (datetime.datetime) – 过期时间

  • remaining_uses (整数) – 可以使用此 trust 生成 token 的次数。None 表示无限次 token。

delete(trust)

删除一个 trust。

get(trust)

获取特定的 trust。

key = 'trust'
list(trustee_user=None, trustor_user=None, **kwargs)

列出 Trusts。

resource_class

别名 Trust

update()

模块内容