Show Table of Contents
4.14. role
role 资源类型是所有用户角色资源在 Red Hat Virtualization 环境中的组合。
表 4.37. 角色参数
| 名称 | 类型 | 描述 | 必需的 | 用户可创建 | 用户可更新 |
|---|---|---|---|---|---|
--name
|
字符串
|
角色名。
|
是
|
是
|
是
|
--permits-permit
|
集合
|
角色开始所包括的权利列表。
|
是
|
是
|
否
|
--description
|
字符串
|
角色的描述。
|
否
|
是
|
是
|
--administrative
|
布尔值
|
如果这个角色是管理角色,把这个参数设为
true。
|
否
|
是
|
是
|
--permits-permit 参数是一个使用下表中的子参数的集合。
表 4.38. --permits-permit 参数
| 名称 | 类型 | 描述 |
|---|---|---|
permit.id
|
字符串
|
添加到角色中的权利。
|
例 4.32. 创建一个新角色
[RHEVM shell (connected)]# add role --name MyRole --permits-permit {permit.id: 1;},{permit.id: 2;)
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.