openstacksdk - doc 翻译(/doc/users/identity.rst)

Using OpenStack Identity

Before working with the Identity service, you'll need to create a connection
to your OpenStack cloud by following the :doc:connect user guide. This will
provide you with the conn variable used in the examples below.
(在操作Identity服务之前,你需要建立连接。)
The OpenStack Identity service is the default identity management system for
OpenStack. The Identity service authentication process confirms the identity
of a user and an incoming request by validating a set of credentials that the
user supplies. Initially, these credentials are a user name and password or a
user name and API key. When the Identity service validates user credentials,
it issues an authentication token that the user provides in subsequent
requests. An authentication token is an alpha-numeric text string that enables
access to OpenStack APIs and resources. A token may be revoked at any time and
is valid for a finite duration.
(OpenStack Identity服务是默认的openstack身份管理系统。Identity服务认证过程确定一个用户的身份,
和验证一系列用户请求。最初,这些凭证是一个用户名和密码,或者一个用户名和API 密钥。
当Identity服务验证用户凭证的时候,它有一个问题就是用户提供的后续验证token请求。一个身份认证token是
一个数字字母字符串,有它才能去使用openstack API和资源。一个token可以在任意时间撤销,也是在固定时间段有效的。)
List Users


A user is a digital representation of a person, system, or service that
uses OpenStack cloud services. The Identity service validates that incoming
requests are made by the user who claims to be making the call. Users have
a login and can access resources by using assigned tokens. Users can be
directly assigned to a particular project and behave as if they are contained
in that project.
(user是指使用openstack云的一个人,一个系统或者一个服务的数字代表。身份认证服务验证用户进来的请求。
用户有一个Login,并且能够用分配的token去使用资源。用户可以被直接分配到一个特定的工程,就像在那个工程里面一样进行操作。)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_users

Full example: identity resource list_

List Credentials

Credentials are data that confirms the identity of the user. For example,
user name and password, user name and API key, or an authentication token that
the Identity service provides.
(证书credentials 是用于确定用户身份的数据。比如,用户的用户名和密码,用户名和API密钥,或者一个其他的认证服务提供的认证令牌)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_credentials

Full example: identity resource list_

List Projects

A project is a container that groups or isolates resources or identity
objects.
(一个project就是一个容器 xxx)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_projects

Full example: identity resource list_

List Domains

A domain is an Identity service API v3 entity and represents a collection
of projects and users that defines administrative boundaries for the management
of Identity entities. Users can be granted the administrator role for a domain.
A domain administrator can create projects, users, and groups in a domain and
assign roles to users and groups in a domain.
(领域domain是一个身份服务API v3实体,并且代表一个项目的集合,xxx。为一个domain,用户可以被授予管理角色。
一个domain管理员可以创建项目,users,和组在一个domain中,和分配角色给用户和组。)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_domains

Full example: identity resource list_

List Groups

A group is an Identity service API v3 entity and represents a collection of
users that are owned by a domain. A group role granted to a domain or project
applies to all users in the group. Adding users to, or removing users from, a
group respectively grants, or revokes, their role and authentication to the
associated domain or project.
(组group是一个身份服务API v3实体,并且代表一个用户的集合被一个domain持有。一个组角色授予xx给一个domain或者项目,增加用户,
或者从里面删除用户,一个分组分别地授予,或者撤销他们的domain或者项目相关的角色和认证)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_groups

Full example: identity resource list_

List Services

A service is an OpenStack service, such as Compute, Object Storage, or
Image service, that provides one or more endpoints through which users can
access resources and perform operations.
(service是一个openstack服务,比如compute,对象存储,或者镜像服务,提供一个或者多个endpoint,通过endpoint用户可以
操作资源和其他操作。)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_services

Full example: identity resource list_

List Endpoints

An endpoint is a network-accessible address, usually a URL, through which
you can access a service.
(endpoint是一个通过网络可以访问的地址,通常是一个URL,通过它你可以操作一个service。)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_endpoints

Full example: identity resource list_

List Regions

A region is an Identity service API v3 entity and represents a general
division in an OpenStack deployment. You can associate zero or more
sub-regions with a region to make a tree-like structured hierarchy.
(范围region是一个身份服务API v3的实例,代表一个通常的部门在openstack开发中。
你可以连接0个或者多个子region去实现一个树状层级)
.. literalinclude:: ../examples/identity/list.py
:pyobject: list_regions

Full example: identity resource list_

.. _identity resource list: http://git.openstack.org/cgit/openstack/python-openstacksdk/tree/examples/identity/list.py

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,911评论 5 460
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 82,014评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 142,129评论 0 320
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,283评论 1 264
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,159评论 4 357
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,161评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,565评论 3 382
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,251评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,531评论 1 292
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,619评论 2 310
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,383评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,255评论 3 313
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,624评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,916评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,199评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,553评论 2 342
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,756评论 2 335

推荐阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,413评论 5 6
  • 放学,走出校门口后,妈妈还没有来。于是 ,我在校门口等着妈妈,可等啊等啊!妈妈就是没来。 过了好一会儿...
    莫忧甜阅读 687评论 1 2
  • 今天我想矫情一下,写一点给自己的东西。 四年前,我们分手,我十天十夜没睡觉,不是故作深情,而是眼皮上都是回忆,我得...
    去年的茶阅读 136,743评论 924 4,652
  • 规定不为踩死的蚂蚁道歉 因为大象也不会因为踩死你而愧疚 我想给小狗找到暖烘烘的窝 在一个下着雨的早上 丢掉手上的煎...
    希望井阅读 283评论 0 2
  • “在绵长的青春时光里,喜欢过一个值得被喜欢的人,才算没有辜负自己。”这大概是给早恋许下的最美情话。 莫欢喜发出如此...
    暖心倩阅读 641评论 0 4