Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images 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
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
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 |
---|
{ "locationId": string, "inspectConfig": { object ( |
Fields | |
---|---|
location |
Deprecated. This field has no effect. |
inspect |
Configuration for the inspector. |
image |
The configuration for specifying what content to redact from images. |
include |
Whether the response should include findings along with the redacted image. |
byte |
The content must be PNG, JPEG, SVG or BMP. |
Response body
If successful, the response body contains an instance of RedactImageResponse
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.