Dashboard

Methods described in this section relate to the dashboard API. These methods can be accessed at TenableAD.dashboard.

class DashboardAPI(api: restfly.session.APISession)[source]
create(name: str, order: int) Dict[source]

Create a new dashboard instance.

Parameters
  • name (str) – The name of the new dashboard.

  • order (int) – order of the dashboard.

Returns

The created dashboard instance.

Return type

dict

Examples

>>> tad.dashboard.create(
...     name='new_dashboard',
...     order=10)
delete(dashboard_id: str) None[source]

Deletes the dashboard instance

Parameters

dashboard_id (str) – The dashboard instance identifier.

Examples

>>> tad.dashboard.delete(dashboard_id='22')
details(dashboard_id: str) Dict[source]

Retrieves the details for a specific dashboard instance.

Parameters

dashboard_id (str) – The dashboard instance identifier.

Returns

The details of the dashboard object of specified dashboard_id.

Return type

dict

Examples

>>> tad.dashboard.details(dashboard_id='1')
list() List[Dict][source]

Retrieve all dashboard instances.

Returns

The list of dashboard objects.

Return type

list

Examples

>>> tad.dashboard.list()
update(dashboard_id: str, **kwargs)[source]

Updates the dashboard instance based on dashboard_id.

Parameters
  • dashboard_id (str) – The dashboard instance identifier.

  • name (optional, str) – The updated name.

  • order (optional, int) – The order of the dashboard.

Examples

>>> tad.dashboard.update(
...     dashboard_id='23',
...     name='updated_dashboard_name',
...     order=1)