Event¶
Methods described in this section relate to the the event API.
These methods can be accessed at TenableIE.event
.
- class EventAPI(api: APISession)[source]¶
- details(event_id: str, infrastructure_id: str, directory_id: str) → Dict[source]¶
Retrieves the details of specific event instance.
- Parameters:
- Returns:
Details of the event object.
- Return type:
Examples
>>> tie.event.details( ... event_id='1', ... infrastructure_id='1', ... directory_id='1' ... )
- search_events(expression: Mapping, profile_id: int, date_start: str, date_end: str, directory_ids: List[int], **kwargs) → List[Dict][source]¶
Searches the events.
- Parameters:
expression (mapping) – An object describing a filter for searched items.
profile_id (int) – The profile instance identifier.
date_start (str) – The starting date from where the events are expected.
date_end (str) – The date till which the events are expected.
directory_ids (List[int]) – List of directory instance identifiers.
order (optional, str) – The desired sorting order of the event identifier. Default is
desc
- Returns:
The search result object.
- Return type:
Examples
>>> tie.event.search_events( ... expression={'AND': [{'systemOnly': 'True'}]}, ... profile_id=5, ... date_start='2022-01-05T00:00:00.000Z', ... date_end='2022-01-12T23:59:59.999Z', ... directory_ids=[1,2,3], ... order='asc' ... )