Show Table of Contents
4.11. permission
permission资源类型是所有权限资源在 Red Hat Virtualization 环境中的组合。
表 4.32. 权限参数
| 名称 | 类型 | 描述 | 必需的 | 用户可创建 | 用户可更新 |
|---|---|---|---|---|---|
--user-id、--group-id
|
字符串
|
用户或组的权限。
|
是
|
是
|
否
|
--role-id
|
字符串
|
指定用于分配权限的角色。
|
是
|
是
|
否
|
--expect
|
'201-created'
|
在所期望的 HTTP 头返回前,请求以异步的方式进行处理。它对需要长时间来执行的任务非常有用,可以防止在任务完成前返回成功信号。
|
否
|
否
|
否
|
下表列出了基于资源的命令中的
permission 选项。
表 4.33. 格外的命令选项
| 选项 | 描述 |
|---|---|
--cluster-identifier
|
为一个集群添加权限。
|
--correlation-id
|
跨系统日志的标签标识
|
--cpuprofile-identifier
|
为一个 CPU 配置档案添加权限。
|
--datacenter-identifier
|
为数据中心添加权限。
|
--disk-identifier
|
为磁盘添加权限。
|
--diskprofile-identifier
|
为磁盘配置档案添加权限。
|
--host-identifier
|
为主机添加权限。
|
--iscsibond-identifier
|
为一个 iSCSI 绑定添加权限。
|
--network-identifier
|
为网络添加权限。
|
--storagedomain-identifier
|
为存储域添加权限。
|
--template-identifier
|
为模板添加权限。
|
--vm-identifier
|
为虚拟机添加权限。
|
--vmpool-identifier
|
为虚拟机池添加权限。
|
--vnicprofile-identifier
|
为一个 VNIC 配置档案添加权限。
|
例 4.30. 创建一个新权限
[RHEVM shell (connected)]# add permission --role-id 00000000-0000-0000-0000-000000000001 --user-id 8b9456ae-e2c8-426e-922d-b01bb8a805fb

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.