scans

Export scans as CSV

Export every scan the caller may see as a CSV attachment.

Rows are Cerbos-scoped by ScanService (an org user gets their org's scans, an admin gets all), sorted newest-first by init_time with unstarted scans last, and enriched with the owning pentest's name via a second Cerbos-scoped PentestService read. The whole document is built in memory and returned inline — see the module docstring for why this is not the async documents pipeline.

Args: db (AsyncSession): Request-scoped database session. context (ActiveContext): Resolved caller identity and scope. query (ScanExportQuery): Optional pentest_id / launch_id filters.

Returns: Response: A text/csv download of the authorized scans.

get/v1/scans/export

Request

  • Base URL
    https://api.ethiack.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Query parameters

pentest_idinteger nullable

Response

CSV export of every scan visible to the caller.

Changes

No recorded changes to this operation across all 1 revision of this API.