5.18. permission

The permission resource type groups all permission resources in a Red Hat Enterprise Virtualization environment.

Table 5.51. Permission parameters

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

The following table lists additional permission options for resource-based commands.

Table 5.52. Additional command options

Option Description
--cluster-identifier
Adds the permission to a cluster.
--datacenter-identifier
Adds the permission to a data center.
--group-identifier
Adds the permission to a group.
--host-identifier
Adds the permission to a host.
--storagedomain-identifier
Adds the permission to a storage domain.
--template-identifier
Adds the permission to a template.
--user-identifier
Adds the permission to a user.
--vm-identifier
Adds the permission to a virtual machine.
--vmpool-identifier
Adds the permission to a virtual machine pool.

Example 5.43. Creating a new permission

[RHEVM shell (connected)]# add permission --vm-identifier MyVM1 --role-id MyRole --user-id jsmith