Creates 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.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location:
The following example
Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "jobId": string, "locationId": string, // Union field |
Fields | |
---|---|
jobId |
The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: |
locationId |
Deprecated. This field has no effect. |
Union field job . The configuration details for the specific type of job to run. job can be only one of the following: |
|
inspectJob |
An inspection job scans a storage repository for InfoTypes. |
riskJob |
A risk analysis job calculates re-identification risk metrics for a BigQuery table. |
Response body
If successful, the response body contains a newly created instance of DlpJob
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.