The following objects are directly related to the role
API.
The role object has the following properties:
Property | Type | Description |
---|---|---|
roleid | string | (readonly) ID of the role. |
name (required) |
string | Name of the role. |
type (required) |
integer | User type. Possible values: 1 - (default) User; 2 - Admin; 3 - Super admin. |
readonly | integer | (readonly) Whether the role is readonly. Possible values: 0 - (default) No; 1 - Yes. |
The role rules object has the following properties:
Property | Type | Description |
---|---|---|
ui | array | Array of the UI element objects. |
ui.default_access | integer | Whether access to new UI elements is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |
modules | array | Array of the module objects. |
modules.default_access | integer | Whether access to new modules is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |
api.access | integer | Whether access to API is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |
api.mode | integer | Mode for treating API methods listed in the api property.Possible values: 0 - (default) Deny list; 1 - Allow list. |
api | array | Array of API methods. |
actions | array | Array of the action objects. |
actions.default_access | integer | Whether access to new actions is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |
The UI element object has the following properties:
Property | Type | Description |
---|---|---|
name (required) |
string | Name of the UI element. Possible values for users of any type: monitoring.dashboard - Monitoring ¡ú Dashboard;monitoring.problems - Monitoring ¡ú Problems;monitoring.hosts - Monitoring ¡ú Hosts;monitoring.overview - Monitoring ¡ú Overview;monitoring.latest_data - Monitoring ¡ú Latest data;monitoring.screens - Monitoring ¡ú Screens;monitoring.maps - Monitoring ¡ú Maps;monitoring.services - Monitoring ¡ú Services;inventory.overview - Inventory ¡ú Overview;inventory.hosts - Inventory ¡ú Hosts;reports.availability_report - Reports ¡ú Availability report;reports.top_triggers - Reports ¡ú Triggers top 100.Possible values only for users of Admin and Super admin user types: monitoring.discovery - Monitoring ¡ú Discovery;reports.notifications - Reports ¡ú Notifications;configuration.host_groups - Configuration ¡ú Host groups;configuration.templates - Configuration ¡ú Templates;configuration.hosts - Configuration ¡ú Hosts;configuration.maintenance - Configuration ¡ú Maintenance;configuration.actions - Configuration ¡ú Actions;configuration.discovery - Configuration ¡ú Discovery;configuration.services - Configuration ¡ú Services.Possible values only for users of Super admin user type: reports.system_info - Reports ¡ú System information;reports.audit - Reports ¡ú Audit;reports.action_log - Reports ¡ú Action log;configuration.event_correlation - Configuration ¡ú Event correlation;administration.general - Administration ¡ú General;administration.proxies - Administration ¡ú Proxies;administration.authentication - Administration ¡ú Authentication;administration.user_groups - Administration ¡ú User groups;administration.user_roles - Administration ¡ú User roles;administration.users - Administration ¡ú Users;administration.media_types - Administration ¡ú Media types;administration.scripts - Administration ¡ú Scripts;administration.queue - Administration ¡ú Queue. |
status | integer | Whether access to the UI element is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |
The module object has the following properties:
Property | Type | Description |
---|---|---|
moduleid (required) |
string | ID of the module. |
status | integer | Whether access to the module is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |
The action object has the following properties:
Property | Type | Description |
---|---|---|
name (required) |
string | Name of the action. Possible values for users of any type: edit_dashboards - Create and edit dashboards and screens;edit_maps - Create and edit maps;add_problem_comments - Add problem comments;change_severity - Change problem severity;acknowledge_problems - Acknowledge problems;close_problems - Close problems;execute_scripts - Execute scripts.Possible values only for users of Admin and Super admin user types: edit_maintenance - Create and edit maintenances. |
status | integer | Whether access to perform the action is enabled. Possible values: 0 - Disabled; 1 - (default) Enabled. |