Delete job
Calling the DELETE API on a MaskingJob will effectively remove the record from DCT (and its execution history) as well as delete the actual masking job on the source engine and on any other engine where the job has been copied to (as a result of execution). The API includes a force option to prevent the action from failing in the event that an engine is unreachable.
Example of deleting a MaskingJob with the force option:
curl -X 'DELETE' \
'https://<APPLIANCE_ADDRESS>/v3/masking-jobs/d53812ce-9186-485d-a388-44bc52087ead?force=true' \
-H 'accept: application/json' \
-H 'Authorization: <API_KEY>'
This will return a DCT Job that can be further polled for status updates. Note that if the force option is used and there are ignored errors, details about those errors will be included in the error_details and warning_message fields of the DCT Job as follows:
{
"job": {
"id": "722ba51cf70e4e32adbd192b07304bb5",
"status": "COMPLETED",
"type": "MASKING_JOB_DELETE",
"error_details": "Unable to connect to the engine.",
"warning_message": "Failed to remove local MaskingJob, engineId: 3 localMaskingJobId: 7.",
"target_id": "d53812ce-9186-485d-a388-44bc52087ead",
"start_time": "2022-01-02T05:11:24.148000+00:00",
"update_time": "2022-01-02T06:11:24.148000+00:00"
}
}