List past jobs

POST https://daas.digicert.com/apicontroller/v1/scan/pastScanJobs
Use this endpoint to get a list of information about past scan jobs, including the start and end time.

Example requests and responses

cURL

curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/scan/pastScanJobs' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"accountId":"5153184","divisionId":677793,"surveyDefId":293514,"startIndex":1,"pageSize":10}'

200 OK

{
    "error": null,
    "data": {
        "scanJobDTOList": [
            {
                "jobId": "294443",
                "percentageCompleted": 20.0,
                "state": 11,
                "duration": 108,
                "startTime": 1588848332168,
                "endTime": 1588848440203,
                "vulStartTime": null,
                "vulEndTime": null,
                "vulState": null,
                "vulEnabled": true,
                "emulationScans": false,
                "vulPercentageCompleted": 0.0,
                "vulDuration": null,
                "hasResults": false
            }
        ],
        "totalCount": 1,
        "currentCount": 1
    }
}

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
divisionIdrequiredintegerDivision ID.
surveyDefIdrequiredintegerSurvey definition ID of the scan. To get a list of surveyDefId values for your scans, use the scan list endpoint.
startIndexoptionalintegerStart at the specified index.
Default: 1
pageSizeoptionalintegerNumber of records per page.
Allowed values: 0 to 512.

Response parameters

NameTypeDescription
errorobjectIncludes the error code if any.
dataobjectObject container for response.
.. scanJobDTOListarrayArray of objects with details about scheduled jobs for the scan.
.. .. jobIdstringScan job ID.
.. .. percentageCompletedfloatScan percentage completed.
.. .. stateintegerState of the scan. For definitions, see the Scan states table below.
.. .. durationintegerDuration used for the scan.
.. .. startTimeintegerStart time of the scan.
.. .. endTimeintegerEnd time of the scan.
.. .. vulStartTimeintegerVulnerability discovery start time.
.. .. vulEndTimeintegerVulnerability discovery end time.
.. .. vulStateintegerStatus of the vulnerability.
.. .. vulEnabledintegerWhether vulnerability is enabled.
.. .. emulationScansintegerIf true, it will exclude Heartbleed and POODLE (TLS) from vulnerability discovery.
.. .. vulPercentageCompletedfloatVulnerability scan percentage completed.
.. .. vulDurationintegerVulnerability scan duration in milliseconds.
.. .. hasResultsbooleanIf true, scan results discovered certificates.
totalCountintegerTotal number of scans in account.
currentCountintegerNumber of scans currently visible.

Scan states

StateValue
10IN_PROGRESS
11COMPLETED
12FAILED
13PARTIAL
15IDLE
16SKIPPED
19CANCELLED