第 80 章 trust
本章描述了 trust
命令下的命令。
80.1. trust create
创建新信任
使用方法:
openstack trust create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>] [--fit-width] [--print-empty] --project <project> --role <role> [--impersonate] [--expiration <expiration>] [--project-domain <project-domain>] [--trustor-domain <trustor-domain>] [--trustee-domain <trustee-domain>] <trustor-user> <trustee-user>
值 | 概述 |
---|---|
<trustor-user> | 委派授权(名称或 id)的用户 |
<trustee-user> | 假设授权的用户(名称或 id) |
值 | 概述 |
---|---|
-h, --help | 显示帮助信息并退出 |
--project <project> | 正在委托的项目(名称或 id)(必需) |
--role <role> | 要授权(名称或 id)的角色(重复选项来设置多个值,必需) |
--impersonate | 从信任生成的令牌将表示 <trustor> (默认为 False) |
--expiration <expiration> | 为信任设置过期日期(yyyy- mm-ddTHH:MM:SS 的格式) |
--project-domain <project-domain> | 项目所属的域(名称或 id)。这可用于在项目名称之间存在冲突时使用。 |
--trustor-domain <trustor-domain> | 包含 <trustor> (名称或 id)的域 |
--trustee-domain <trustee-domain> | 包含 <trustee> (名称或 id)的域 |
值 | 概述 |
---|---|
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | 输出格式,默认为 table |
-c COLUMN, --column COLUMN | 指定要包含的列,可以重复使用 |
值 | 概述 |
---|---|
--noindent | 是否禁用缩进 json |
值 | 概述 |
---|---|
--prefix PREFIX | 在所有变量名称中添加前缀 |
值 | 概述 |
---|---|
--max-width <integer> | 最大显示宽度,<1 禁用。您也可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。 |
--fit-width | 将表适合显示宽度。表示,如果 --max- width 大于 0。将环境变量 CLIFF_FIT_WIDTH=1 设置为始终启用 |
--print-empty | 如果没有要显示的数据,请打印空表。 |