Create file scan

POST
https://daas.digicert.com/apicontroller/v1/scan/createFileScan

Use this endpoint to use agents to scan TrustStores, KeyStores, SSH keys, and binary cryptographic data stored on your host server.

cURL
curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/scan/createFileScan' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
	"surveyName": "scan1125b",
	"frequencyType": "onetime",
	"surveyConfig": {
		"tags": ["c1119"],
		"startTime": 0,
		"timezone": "5:30#chennai",
		"speed": "slow",
		"isCapiScan": true,
		"isSystemScan": true,
		"systemScanTypes": ["archive", "certificates_keys", "signing_certs", "ssh", "crypto", "keystores"]
	},
	"accountId": 5153184,
	"divisionId": 677793,
	"emailAddresses": "cc.admin@cert-testing.com"
}'
200 OK
{
	{
	"error": null,
	"data": {
		"accountId": "5153184",
		"divisionId": 677793,
		"surveyDefId": 830,
		"surveyName": "scan1125b",
		"message": "Scan created successfully"
	}
}

Request parameters

Name Req/Opt Type Description
surveyName required string Friendly name provided for the scan.
Max length: 80 characters.
frequencyType required string How often the scan will run.
Allowed values: onetime, daily, weekly, monthly
surveyConfig required object Object container for scan configuration details.
.. tags optional string Add tags to the scan.
Tags can be a combination of letters (a-z or A-Z), numbers (0-9), number signs (#), or spaces. Entries must be comma-separated. (Maximum 512 characters).
Note: Alphanumeric characters like #, @ and _ are allowed.
.. startTime required integer Start time for the scheduled scan.
Format: epoch in millisecond. Epoch corresponds to 0 hours, 0 minutes, and 0 seconds (00:00:00) Coordinated Universal Time (UTC) on a specific date, which varies from system to system.
Example: 1596781119
Note: startTime value should be 0 when the frequencytype is onetime
.. timezone optional string Time zone for the scan.
Format: GMT + your timezone offset.Example: -8#pacifictime
.. speed optional string How fast the scan completes.
Default: mediumAllowed values: slow, medium, fast
.. isCapiScan optional boolean If true, scan is CryptoAPI scan. CapiScan scans operating system (OS) certificate store.
Default: false
.. isSystemScan optional boolean If true, scan is system scan. SystemScan scans TLS/SSL certificates, user certificates, keys, code signing certificates, archive files etc.
Default: false
.. systemScanTypes required array List of items to be scanned from the system.
accountId required string Account ID.
divisionId required integer Division ID.
emailAddresses optional string Email address for the contact associated with the file scan.

Response parameters

Name Type Description
error object Includes the error code, if any.
data object Object container for response.
.. accountId string Account ID.
.. divisionId integer Division ID.
.. surveyDefId integer Survey definition ID of the file scan.
.. surveyName string Friendly name provided for the scan.
Max length: 80 characters.
.. message string Updated message for scan creation.