Using Active IQ Unified Manager management-server/event REST API to View Events
In this blog we will be discussing how to use the Events REST API to view events on Active IQ Unified Manager by querying with the appropriate parameters.
By using the /management-server/events API, you can query the events in your data center, including historical data. Use the inbuilt filters, such as name, impact level, impact area, severity, state, resource name, and resource type, to view specific events. The resource type and area parameters return information about the storage object on which the event has occurred, and the impact area returns the information about the issue for which the event is raised, such as availability, capacity, configuration, security, protection, and performance. You can also use the event key to query the details of a specific event and run the next set of operations on the resources.
Now let's examine how we can views events on active IQ Unified Manager by querying with different parameters.
In cases where we have the event key (event.key) and event name (event.name), you can use the REST API in the following way to retrieve the event details
Note:-“Filtering by the 'history.user' and 'history.cause' attribute is not allowed when the value for 'history.state' is 'new'" It is also possible query events based on a group (group) defined in Active IQ Unified Manager and also based on origin (origin).
Find events based on group based on Active IQ Unified Manager
The other parameters to customize your search includes offset which enables us to set the start index for the entries to be returned, max_records to limit the number of records returned and Order_by to order results by specified field and optional [asc|desc] direction. Default direction is ‘asc’ for ascending.
The following sample program illustrates how to query events using different parameters with the /management-server/events API.