De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more.
When no InfoTypes or CustomInfoTypes are specified in this request, 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
POST https://dlp.googleapis.com/v2/{parent=projects/*}/locations/{locationId}/content:deidentify
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
The parent resource name, for example projects/my-project-id. Authorization requires the following Google IAM permission on the specified resource
|
locationId |
The geographic location to process de-identification. Reserved for future extensions. |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "deidentifyConfig": { object ( |
Fields | |
---|---|
deidentifyConfig |
Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentifyTemplateName argument. |
inspectConfig |
Configuration for the inspector. Items specified here will override the template referenced by the inspectTemplateName argument. |
item |
The item to de-identify. Will be treated as text. |
inspectTemplateName |
Optional template to use. Any configuration directly specified in inspectConfig will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged. |
deidentifyTemplateName |
Optional template to use. Any configuration directly specified in deidentifyConfig will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged. |
Response body
If successful, the response body contains an instance of DeidentifyContentResponse
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.