码迷,mamicode.com
首页 > 其他好文 > 详细

openstack学习心得:keystone 常用命令(M版)

时间:2017-11-14 19:37:02      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:arguments   命令   openstack   main   列表   tle   常用命令   source   终端   

查看用户列表

openstack user list

查看用户具体信息

usage: openstack user show [-h]
                           [-f {html,json,json,shell,table,value,yaml,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--noindent]
                           [--prefix PREFIX] [--domain <domain>]
                           <user>

Display user details

positional arguments:
  <user>                User to display (name or ID)

创建用户

usage: openstack user create [-h]
                             [-f {html,json,json,shell,table,value,yaml,yaml}]
                             [-c COLUMN] [--max-width <integer>] [--noindent]
                             [--prefix PREFIX] [--domain <domain>]
                             [--project <project>]
                             [--project-domain <project-domain>]
                             [--password <password>] [--password-prompt]
                             [--email <email-address>]
                             [--description <description>]
                             [--enable | --disable] [--or-show]
                             <name>

Create new user

positional arguments:
  <name>                New user name

删除用户

usage: openstack user delete [-h] [--domain <domain>] <user> [<user> ...]

Delete user(s)

positional arguments:
  <user>             User(s) to delete (name or ID)

修改用户密码

usage: openstack user password set [-h] [--password <new-password>]
                                   [--original-password <original-password>]

Change current user password

修改用户属性

usage: openstack user set [-h] [--name <name>] [--project <project>]
                          [--project-domain <project-domain>]
                          [--password <password>] [--password-prompt]
                          [--email <email-address>]
                          [--description <description>] [--enable | --disable]
                          <user>

Set user properties

positional arguments:
  <user>                User to change (name or ID)

查看项目列表

usage: openstack project list [-h]
                              [-f {csv,html,json,json,table,value,yaml,yaml}]
                              [-c COLUMN] [--max-width <integer>] [--noindent]
                              [--quote {all,minimal,none,nonnumeric}]
                              [--domain <domain>] [--user <user>] [--long]

List projects

查看项目详细信息

usage: openstack project show [-h]
                              [-f {html,json,json,shell,table,value,yaml,yaml}]
                              [-c COLUMN] [--max-width <integer>] [--noindent]
                              [--prefix PREFIX] [--domain <domain>]
                              [--parents] [--children]
                              <project>

Display project details

positional arguments:
  <project>             Project to display (name or ID)

创建新项目

usage: openstack project create [-h]
                                [-f {html,json,json,shell,table,value,yaml,yaml}]
                                [-c COLUMN] [--max-width <integer>]
                                [--noindent] [--prefix PREFIX]
                                [--domain <domain>] [--parent <project>]
                                [--description <description>]
                                [--enable | --disable]
                                [--property <key=value>] [--or-show]
                                <project-name>

Create new project

删除项目

usage: openstack project delete [-h] [--domain <domain>]
                                <project> [<project> ...]

Delete project(s)

修改项目

usage: openstack project set [-h] [--name <name>] [--domain <domain>]
                             [--description <description>]
                             [--enable | --disable] [--property <key=value>]
                             <project>

Set project properties

positional arguments:
  <project>             Project to modify (name or ID)

查看角色列表

usage: openstack role list [-h]
                           [-f {csv,html,json,json,table,value,yaml,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--noindent]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--domain <domain> | --project <project>]
                           [--user <user> | --group <group>]
                           [--group-domain <group-domain>]
                           [--project-domain <project-domain>]
                           [--user-domain <user-domain>] [--inherited]

List roles

查看角色信息

usage: openstack role show [-h]
                           [-f {html,json,json,shell,table,value,yaml,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--noindent]
                           [--prefix PREFIX]
                           <role>

Display role details

创建角色

usage: openstack role create [-h]
                             [-f {html,json,json,shell,table,value,yaml,yaml}]
                             [-c COLUMN] [--max-width <integer>] [--noindent]
                             [--prefix PREFIX] [--or-show]
                             <role-name>

Create new role

positional arguments:
  <role-name>           New role name

删除角色

usage: openstack role delete [-h] <role> [<role> ...]

Delete role(s)

positional arguments:
  <role>      Role(s) to delete (name or ID)

修改角色

usage: openstack role set [-h] [--name <name>] <role>

Set role properties

positional arguments:
  <role>         Role to modify (name or ID)

添加角色到相应项目

usage: openstack role add [-h] [--domain <domain> | --project <project>]
                          [--user <user> | --group <group>]
                          [--group-domain <group-domain>]
                          [--project-domain <project-domain>]
                          [--user-domain <user-domain>] [--inherited]
                          <role>

Adds a role to a user or group on a domain or project

positional arguments:
  <role>                Role to add to <user> (name or ID)

从相应项目删除角色

usage: openstack role remove [-h] [--domain <domain> | --project <project>]
                             [--user <user> | --group <group>]
                             [--group-domain <group-domain>]
                             [--project-domain <project-domain>]
                             [--user-domain <user-domain>] [--inherited]
                             <role>

Remove role from domain/project : user/group

positional arguments:
  <role>                Role to remove (name or ID)

展示 角色-用户-项目 三者关系

usage: openstack role assignment list [-h]
                                      [-f {csv,html,json,json,table,value,yaml,yaml}]
                                      [-c COLUMN] [--max-width <integer>]
                                      [--noindent]
                                      [--quote {all,minimal,none,nonnumeric}]
                                      [--effective] [--role <role>] [--names]
                                      [--user <user>]
                                      [--user-domain <user-domain>]
                                      [--group <group>]
                                      [--group-domain <group-domain>]
                                      [--domain <domain> | --project <project>]
                                      [--project-domain <project-domain>]
                                      [--inherited]

List role assignments

展示endpoint(终端)列表

usage: openstack endpoint list [-h]
                               [-f {csv,html,json,json,table,value,yaml,yaml}]
                               [-c COLUMN] [--max-width <integer>]
                               [--noindent]
                               [--quote {all,minimal,none,nonnumeric}]
                               [--service <service>] [--interface <interface>]
                               [--region <region-id>]

List endpoints

展示终端信息

usage: openstack endpoint show [-h]
                               [-f {html,json,json,shell,table,value,yaml,yaml}]
                               [-c COLUMN] [--max-width <integer>]
                               [--noindent] [--prefix PREFIX]
                               <endpoint-id>

Display endpoint details

positional arguments:
  <endpoint-id>         Endpoint ID to display

创建终端

usage: openstack endpoint create [-h]
                                 [-f {html,json,json,shell,table,value,yaml,yaml}]
                                 [-c COLUMN] [--max-width <integer>]
                                 [--noindent] [--prefix PREFIX]
                                 [--region <region-id>] [--enable | --disable]
                                 <service> <interface> <url>

Create new endpoint

positional arguments:
  <service>             New endpoint service (name or ID)
  <interface>           New endpoint interface type (admin, public or
                        internal)
  <url>                 New endpoint URL

删除终端

usage: openstack endpoint delete [-h] <endpoint-id>

Delete endpoint

positional arguments:
  <endpoint-id>  Endpoint ID to delete

修改终端

usage: openstack endpoint set [-h] [--region <region-id>]
                              [--interface <interface>] [--url <url>]
                              [--service <service>] [--enable | --disable]
                              <endpoint-id>

Set endpoint properties

positional arguments:
  <endpoint-id>         Endpoint ID to modify

展示服务目录

usage: openstack catalog list [-h]
                              [-f {csv,html,json,json,table,value,yaml,yaml}]
                              [-c COLUMN] [--max-width <integer>] [--noindent]
                              [--quote {all,minimal,none,nonnumeric}]

List services in the service catalog

展示服务对应的服务目录

usage: openstack catalog show [-h]
                              [-f {html,json,json,shell,table,value,yaml,yaml}]
                              [-c COLUMN] [--max-width <integer>] [--noindent]
                              [--prefix PREFIX]
                              <service>

Display service catalog details

positional arguments:
  <service>             Service to display (type or name)

token 相关命令

access token create  Create an access token
  request token authorize  Authorize a request token
  request token create  Create a request token
  token issue    Issue new token
  token revoke   Revoke existing token

openstack学习心得:keystone 常用命令(M版)

标签:arguments   命令   openstack   main   列表   tle   常用命令   source   终端   

原文地址:http://www.cnblogs.com/swim/p/7833904.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!