List scheduled jobs

POST https://daas.digicert.com/apicontroller/v1/scan/futureScanJobs
Use this endpoint to get a list of information about all scheduled jobs for a scan.

Example requests and responses

cURL

curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/scan/futureScanJobs' \
--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": "1591099200000",
                "startTime": 1591099200000,
                "state": 11
            },
            {
                "jobId": "1594123200000",
                "startTime": 1594123200000,
                "state": 11
            },
            {
                "jobId": "1596542400000",
                "startTime": 1596542400000,
                "state": 11
            },
            {
                "jobId": "1598961600000",
                "startTime": 1598961600000,
                "state": 11
            },
            {
                "jobId": "1601985600000",
                "startTime": 1601985600000,
                "state": 11
            },
            {
                "jobId": "1604404800000",
                "startTime": 1604404800000,
                "state": 11
            },
            {
                "jobId": "1606824000000",
                "startTime": 1606824000000,
                "state": 11
            },
            {
                "jobId": "1609848000000",
                "startTime": 1609848000000,
                "state": 11
            },
            {
                "jobId": "1612267200000",
                "startTime": 1612267200000,
                "state": 11
            },
            {
                "jobId": "1614686400000",
                "startTime": 1614686400000,
                "state": 11
            }
        ],
        "totalCount": 2147483647,
        "currentCount": 10
    }
}

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.
.. .. startTimestringStart time for the scheduled scan.
Example: 1596781119
Note: startTime value should be 0 when the frequencytype is onetime
.. .. stateintegerState of the scan. For definitions, see the Scan states table below.
totalCountintegerTotal number of scans in account.
currentCountintegerNumber of scans currently visible.

Scan states

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