Cards¶
Methods described in this section relate to the exposure view cards API.
These methods can be accessed at TenableExposureManagement.exposure_view.cards.
- class CardsAPI(api: APISession)[source]¶
- get_by_id(card_id: str, trend_timeframe: Timeframe | None = None, sla_efficiency_timeframe: Timeframe | None = None, sla_breakdown_filter: SlaBreakdownFilter | None = SlaBreakdownFilter.ANY, include_trend_events: bool | None = False) → CardDetails[source]¶
Get a specific card by its ID with optional filters
- Parameters:
card_id – The ID of the card to retrieve
trend_timeframe – Optional timeframe for trend data
sla_efficiency_timeframe – Optional timeframe for SLA efficiency data
sla_breakdown_filter – Optional filter for SLA breakdown (ANY, REMEDIATED, NON_REMEDIATED)
include_trend_events – Whether to include trend events in the response
- Returns:
CardDetails object containing the card details
- list(is_global_card: bool | None = None, query_text: str | None = None, offset: int | None = 0, limit: int | None = 25, sorting_order: SortDirection | None = SortDirection.ASC) → Cards[source]¶
List cards based on filter criteria
- Parameters:
is_global_card – Filter cards by is_global flag
query_text – Text query to filter cards
offset – The number of items to skip before starting to collect the result set
limit – Max number of items to return
sorting_order – Sorting direction (ASC or DESC)
- Returns:
Cards object containing the list of cards and pagination info