Scan Jobs
Create Scan Job
Use this API to create a new scan job in the specified data source.
post/api/discovery-scan-config/v2/scan-job
Request body
Example request
{
"dataSourceId": "4f162d7c-a563-4bf1-a7c4-b7899f6dcdef",
"scanProfileId": "ad390cb4-9ce9-4976-8895-66d724493c7b",
"classificationProfileId": "cd490cb4-9ce9-4976-8895-66d724493c5d",
"detectorProfileId": "cd490cb4-9ce9-4976-8895-66d724493c5d"
}Response
Scan job created successfully
Example response
{
"name": "S3-DS-24thMarch",
"sourceSystemId": "4f162d7c-a563-4bf1-a7c4-b7899f6dcdef",
"scannerId": "4f162d7c-a563-4bf1-a7c4-b7899f6dcdef",
"status": "Completed",
"statusMessage": "status message",
"scanLevel": "CATALOG_SCAN",
"expectedRecordCount": 8,
"successRecordCount": 8,
"scannedMetadataCount": 38,
"uploadedMetadataCount": 38,
"createdDate": "2022-05-24T14:44:02.596+00:00",
"createdBy": "2ae93388-bef6-4b84-a612-8a4904b78dac",
"jobProgress": 100,
"updatedDate": "2022-05-24T14:44:22.294+00:00",
"updatedBy": "2ae93388-bef6-4b84-a612-8a4904b78dac",
"cancelledBy": "2ae93388-bef6-4b84-a612-8a4904b78dac",
"cancelledDate": "2022-05-24T14:44:22.294+00:00",
"pausedBy": "2ae93388-bef6-4b84-a612-8a4904b78dac",
"pausedDate": "2022-05-24T14:44:22.294+00:00",
"resumedBy": "2ae93388-bef6-4b84-a612-8a4904b78dac",
"resumedDate": "2022-05-24T14:44:22.294+00:00",
"classifiedTermsCount": 7,
"ingestionStatus": "PUBLISHED",
"ingestionDate": "2022-05-24T14:44:33.803+00:00",
"ingestedMetadataVolume": 37734,
"totalContentSize": 295454,
"scanProfile": {
"id": "4f162d7c-a563-4bf1-a7c4-b7899f6dcdef",
"name": "My SQL Scan Profile",
"scanType": "CATALOG",
"sourceType": "USER_DEFINED",
"systemName": "MySQL",
"scanProfileContext": {
"type": "MySQL",
"includes": [
{
"database": "OT",
"table": "Employee",
"columns": "Name"
}
],
"excludes": [
{
"database": "OT",
"table": "Credential",
"columns": "Id"
}
],
"samplingScan": {
"enableSampling": false
},
"tableLimits": {
"randomize": false,
"maxCount": 10
},
"tableTypes": [
"TABLE"
],
"databaseLimits": {
"randomize": false,
"maxCount": 1
}
},
"systemType": "RELATIONAL_DATABASE",
"createdDate": "2021-09-11T01:41:50.143+00:00",
"displayName": "Amazon Redshift"
},
"retryAttempts": 1,
"maxRetries": 3,
"idleScanDuration": 377342131,
"scanDuration": 377342131,
"scanStartedDate": "2022-05-24T14:44:22.294+00:00"
}