4.11. permission
The
permission
resource type groups all permission resources in a Red Hat Virtualization environment.
Name | Type | Description | Required | User Creatable | User Updatable |
---|---|---|---|---|---|
--user-id , --group-id
|
string
|
A reference to the user or group using the permission.
|
Yes
|
Yes
|
No
|
--role-id
|
string
|
A reference to a role to assign for the permission.
|
Yes
|
Yes
|
No
|
--expect
|
'201-created'
|
Request becomes asynchronous until the expected HTTP header is returned. Useful for long-running tasks that would otherwise return as successful before the task is completed.
|
No
|
No
|
No
|
The following table lists additional
permission
options for resource-based commands.
Option | Description |
---|---|
--cluster-identifier
|
Adds the permission to a cluster.
|
--correlation-id
|
A tagging identifier for cross-system logging.
|
--cpuprofile-identifier
|
Adds the permission to a CPU profile.
|
--datacenter-identifier
|
Adds the permission to a data center.
|
--disk-identifier
|
Adds the permission to a disk.
|
--diskprofile-identifier
|
Adds the permission to a disk profile.
|
--host-identifier
|
Adds the permission to a host.
|
--iscsibond-identifier
|
Adds the permission to an iSCSI bond.
|
--network-identifier
|
Adds the permission to a network.
|
--storagedomain-identifier
|
Adds the permission to a storage domain.
|
--template-identifier
|
Adds the permission to a template.
|
--vm-identifier
|
Adds the permission to a virtual machine.
|
--vmpool-identifier
|
Adds the permission to a virtual machine pool.
|
--vnicprofile-identifier
|
Adds the permission to a VNIC profile.
|
Example 4.30. Creating a new permission
[RHEVM shell (connected)]# add permission --role-id 00000000-0000-0000-0000-000000000001 --user-id 8b9456ae-e2c8-426e-922d-b01bb8a805fb