Skip to main content

event role-config create

Contributors
Suggest changes

Create role-based event configuration

Availability: This command is available to cluster administrators at the advanced privilege level.

Description

The event role-config create command creates an EMS role-based configuration for an access control role. It provides the ability to assign an event filter to an access control role. Once an event filter is assigned to the access control role, only a limited subset of event management system (EMS) messages that match the event filter are visible to users of that role and only those limited subset of messages are sent as notifications to them. The assigned filter is applied transparently in both cases. The command also provides the ability to limit access to global EMS configurations available with the "event config" commands. Limiting access to EMS events and configurations is typically applied for an access control role that is designed to have limited administrative capabilities.

Parameters

-access-control-role <text> - Access Control Role (privilege: advanced)

Use this mandatory parameter to specify the access control role of the EMS role-based configuration.

[-filter-name <text>] - Event Filter Name (privilege: advanced)

Use this optional parameter to specify the name of the event filter that will be assigned to the access control role.

[-limit-access-to-global-configs {true|false}] - Limit Access to Global Configs (privilege: advanced)

Use this optional parameter to limit access to the global EMS configurations available with the "event config" commands. If no value is provided this field is set to true by default.

Examples

The following examples create role-based event configurations:

cluster1::> event role-config create -access-control-role storage-admin
             -filter-name storage-admin-events -limit-access-to-global-configs true

cluster1::> event role-config show
Access Control Role Filter Name           Limit Access to Global Configs
------------------- --------------------- ------------------------------
storage-admin       storage-admin-events  true

cluster1::> event role-config create -access-control-role storage-admin
             -filter-name storage-admin-events

cluster1::> event role-config show
Access Control Role Filter Name           Limit Access to Global Configs
------------------- --------------------- ------------------------------
storage-admin       storage-admin-events  true

cluster1::> event role-config create -access-control-role storage-admin
             -limit-access-to-global-configs false

cluster1::> event role-config show
Access Control Role Filter Name           Limit Access to Global Configs
------------------- --------------------- ------------------------------
storage-admin       -                     false