Scan Jobs
Cancel Scan Job
Use this API to cancel an existing scan job by its unique identifier.
patch/api/discovery-scan-config/v2/scanners/{scannerId}/jobs/{jobId}/cancel
Path parameters
scannerIdstring uuid required
The unique identifier of the scanner, which is an alias for the Worker Node ID running the scan job. The scannerId value from Get List of Scan Jobs API can be used for scannerId.
jobIdstring uuid required
The unique identifier of the scan job. The id value from Get List of Scan Jobs API can be used for jobId.
Response
Scan job cancellation accepted and initiated
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"
}