Filter scan

POST https://daas.digicert.com/apicontroller/v1/scan/filter
Use this endpoint to get the list of the scans based on the filter criteria selected.

For more information on discovery scan and its details, see Set up and run a scan.

Example requests and responses

cURL

curl --location --request GET 'https://daas.digicert.com/apicontroller/v1/scan/filter' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"searchCriteriaList":[],"filterSelected":"name","accountId":"5153184","divisionIds":[]}'

200 OK

{
    "error": null,
    "data": {
        "filterName": "name",
        "displayName": "name",
        "values": [
            "02april2020 01",
            "02Jul2019 01",
            "02Jul2019 01_1",
            "02Jul2019 03",
            "03Feb2020 01",
            "04may2020 01",
            "0507 tls",
            "05may2020 01",
            "06Feb2020 01",
            "06feb2020 03",
            "07feb2020 01",
            "vu18pi0b57ReinstateScan",
            "vur0p7pfsfVulScan",
            "vvf3bd61e4autoCreateScan",
            "vvggbvgghvautoCreateScan",
            "ジテンドラ..ヴァゲラ"
        ]
    }
}

Request parameters

NameReq/OptTypeDescription
searchCriteriaListoptionalarrayFilter results by specified values. For definitions, see the Filter options for searchCriteriaList table below.
Example:
filterSelectedrequiredstringThe value to show in the results for each scan that meets the search criteria.
Allowed values: name, sensor, state, latestResult, scantype, ipAddress.
accountIdrequiredstringAccount ID.
divisionIdrequiredarrayDivision IDs.

Response parameters

NameTypeDescription
errorobjectIncludes the error code if any.
dataobjectObject container for response.
.. filterNamestringSpecified filter  key.
.. displayNamestringFriendly name of the filter key as it appears in the UI.
.. valuesarrayList of scans that meet the search criteria. The value shown for each scan is the value set for the  filterSelected parameter in the request body.

Filter options for searchCriteriaList

KeyOperationValue
nameEQUALSScan name
sensorEQUALSSensor name
stateEQUALSACTIVE ,SUSPENDED,DELETED, INPROGRESS
latestResultEQUALSIN_PROGRESS, COMPLETED, FAILED, PARTIAL, IDLE, SKIPPED, CANCELLED
scantypeEQUALSOne Time, Daily, Weekly, Monthly
ipAddressEQUALSIP/FQDN