PCI ASV: Finding Exports
Tenable has added a finding export workflow to the Tenable PCI ASV API, enabling you to retrieve findings in bulk rather than paging through them one attestation at a time. You can submit an export request, monitor its progress, and download the results in chunks sized to suit your integration. Export requests can be filtered by attestation, asset, and severity level.
NoteYou must request access to these endpoints through Tenable Support, even if you have a valid Tenable PCI ASV license.
Benefits
- Retrieve findings across all your attestations in a single export request
- Choose a chunk size of 50 to 2,000 findings to accommodate the memory and timeout constraints of your integration
- Filter exports by attestation, asset, or severity level to retrieve only the findings you need
- Monitor export progress and download chunks as soon as they become available, without waiting for the entire export to complete
- Cancel exports you no longer need while retaining access to chunks that have already been prepared
New Endpoints
The following endpoints are now available:
| API Endpoint | Name | Description |
|---|---|---|
| POST /pci-asv/finding/export | Export findings | Creates an export of your PCI ASV findings and returns an identifier used to track the export. |
| GET /pci-asv/finding/export/list | List findings export jobs | Returns the status of the 100 most recent finding exports created in your container. |
| GET /pci-asv/finding/export/{export_uuid}/status | Get findings export status | Returns the status of a finding export, including which chunks are available for download. |
| GET /pci-asv/finding/export/{export_uuid}/chunk/{chunk_id} | Download findings export chunk | Returns the findings contained in a specific export chunk. |
| POST /pci-asv/finding/export/{export_uuid}/cancel | Cancel findings export | Cancels a finding export and sets its status to CANCELLED. |
Request Body Parameters
The Export findings endpoint accepts the following request body parameters:
| Parameter | Data Type | Description |
|---|---|---|
chunk_size | Integer | Required. Specifies the number of findings to include in each export chunk. Supported values are 50 through 2000. |
attestations | Array | Filters the export to findings associated with the specified attestations. If omitted, the export includes findings from all attestations. |
assets | Array | Filters the export to findings associated with the specified assets. If omitted, the export includes findings for all assets. |
severity | Array | Filters the export to findings with the specified severity levels. Supported values are INFO, LOW, MEDIUM, HIGH, and CRITICAL. If omitted, findings at all severity levels are included. |
CautionYou can create a maximum of three exports within a 60-second period. Additional requests return a
429response.
Exported Finding Properties
Each finding in an export chunk identifies the associated asset, attestation, and plugin, and includes CVSS version 2 and version 3 scores. The following additional response properties are available:
| Response Property | Data Type | Description |
|---|---|---|
cves | Array | Lists the Common Vulnerabilities and Exposures (CVE) identifiers associated with the finding. Tenable returns an empty list or omits this property when the plugin is not associated with any CVE. |
solution | String | Provides the recommended remediation for the finding. This property is returned only when the plugin provides a solution. |
scan_date | String | Specifies the date and time when the scan that identified the finding ran, in YYYY-MM-DD HH:MM:SS UTC format. |
scan_expiration_date | String | Specifies the date and time when the scan expires, in YYYY-MM-DD HH:MM:SS UTC format. |
For the complete list of response properties, see Download findings export chunk.
Export Workflow
The export workflow follows these steps:
- Submit an export request. Use the Export findings endpoint. Tenable returns an
export_uuidthat identifies the export. - Check the export status. Poll the Get findings export status endpoint to monitor progress. While the export is processing, the
chunks_availableresponse property lists the chunks ready for download. - Download available chunks. Use the Download findings export chunk endpoint to download each chunk as it becomes available. You do not need to wait for the entire export to complete.
- Cancel an export if needed. If you no longer need an export, use the Cancel findings export endpoint. Any chunks Tenable has already prepared remain available for download.
To review previously created exports, use the List findings export jobs endpoint, which returns the 100 most recent export jobs created in your container.
NoteTenable removes export chunks after the export expires. The
expiredresponse property indicates whether the chunks have been removed.
Example: Export High and Critical Findings for an Attestation
For example, to export high and critical findings for a single attestation in chunks of 500 findings, use the following cURL request:
curl --request POST \
--url https://cloud.tenable.com/pci-asv/finding/export \
--header 'X-ApiKeys: accessKey=<YOURACCESSKEY>;secretKey=<YOURSECRETKEY>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"chunk_size": 500,
"attestations": [
"a1b2c3d4-0000-4000-8000-000000000001"
],
"severity": [
"HIGH",
"CRITICAL"
]
}
'Tenable returns the identifier for the export:
{
"export_uuid": "a1b2c3d4-0000-4000-8000-000000000003",
"resource": "finding"
}
NoteThe
severityrequest body parameter uses severity level names, while theseverityresponse property of an exported finding uses numeric values:0(Info),1(Low),2(Medium),3(High), and4(Critical).
