Este conteúdo não está disponível no idioma selecionado.
4.5. roles
The
role resource type groups all individual roles in a Red Hat Storage Console Application.
| Name | Type | Description | Required | User Creatable | User Updatable |
|---|---|---|---|---|---|
--name
|
string
|
The name of the role.
|
Yes
|
Yes
|
Yes
|
--description
|
string
|
A description for the role.
|
No
|
Yes
|
Yes
|
--permits-permit
|
collection
|
A list of permits for initial inclusion with the role. Additional permits included with the permit resource type.
|
Yes
|
Yes
|
No
|
--administrative
|
Boolean
|
Set to
true if this is an administrative role.
|
No
|
Yes
|
Yes
|
The
--permits-permit parameter is a collection that uses the sub-parameters in the following table.
| Name | Type | Description |
|---|---|---|
permit.id
|
string
|
A reference to a permit to add to the role's permits.
|
Example 4.9. Creating a new role
[RHSC shell (connected)]# add role --name MyRole --permits-permit {permit.id: 1;},{permit.id: 2;)
[RHSC shell (connected)]# add role --name MyRole --permits-permit {permit.id: 1;},{permit.id: 2;)