Skip to main content

dlp_jobs

Creates, updates, deletes, gets or lists a dlp_jobs resource.

Overview

Namedlp_jobs
TypeResource
Idgoogle.dlp.dlp_jobs

Fields

NameDatatypeDescription
namestringThe server-assigned name.
actionDetailsarrayEvents that should occur after the job has completed.
createTimestringTime when the job was created.
endTimestringTime when the job finished.
errorsarrayA stream of errors encountered running the job.
inspectDetailsobjectThe results of an inspect DataSource job.
jobTriggerNamestringIf created by a job trigger, the resource name of the trigger that instantiated the job.
lastModifiedstringTime when the job was last modified by the system.
riskDetailsobjectResult of a risk analysis operation request.
startTimestringTime when the job started.
statestringState of a job.
typestringThe type of job.

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_dlp_jobs_listSELECTlocationsId, organizationsIdLists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_dlp_jobs_getSELECTdlpJobsId, projectsIdGets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_dlp_jobs_listSELECTprojectsIdLists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_locations_dlp_jobs_getSELECTdlpJobsId, locationsId, projectsIdGets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_locations_dlp_jobs_listSELECTlocationsId, projectsIdLists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_dlp_jobs_createINSERTprojectsIdCreates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
projects_locations_dlp_jobs_createINSERTlocationsId, projectsIdCreates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
projects_dlp_jobs_deleteDELETEdlpJobsId, projectsIdDeletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_locations_dlp_jobs_deleteDELETEdlpJobsId, locationsId, projectsIdDeletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_dlp_jobs_cancelEXECdlpJobsId, projectsIdStarts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_locations_dlp_jobs_cancelEXECdlpJobsId, locationsId, projectsIdStarts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
projects_locations_dlp_jobs_finishEXECdlpJobsId, locationsId, projectsIdFinish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.
projects_locations_dlp_jobs_hybrid_inspectEXECdlpJobsId, locationsId, projectsIdInspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.

SELECT examples

Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

SELECT
name,
actionDetails,
createTime,
endTime,
errors,
inspectDetails,
jobTriggerName,
lastModified,
riskDetails,
startTime,
state,
type
FROM google.dlp.dlp_jobs
WHERE projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new dlp_jobs resource.

/*+ create */
INSERT INTO google.dlp.dlp_jobs (
projectsId,
jobId,
inspectJob,
locationId,
riskJob
)
SELECT
'{{ projectsId }}',
'{{ jobId }}',
'{{ inspectJob }}',
'{{ locationId }}',
'{{ riskJob }}'
;

DELETE example

Deletes the specified dlp_jobs resource.

/*+ delete */
DELETE FROM google.dlp.dlp_jobs
WHERE dlpJobsId = '{{ dlpJobsId }}'
AND projectsId = '{{ projectsId }}';