Method: projects.content.inspect

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.

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.

For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,

HTTP request

POST https://dlp.googleapis.com/v2/{parent=projects/*}/content:inspect

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent resource name, for example projects/my-project-id.

Authorization requires the following Google IAM permission on the specified resource parent:

  • serviceusage.services.use

Request body

The request body contains data with the following structure:

JSON representation
{
  "inspectConfig": {
    object (InspectConfig)
  },
  "item": {
    object (ContentItem)
  },
  "inspectTemplateName": string,
  "locationId": string
}
Fields
inspectConfig

object (InspectConfig)

Configuration for the inspector. What specified here will override the template referenced by the inspectTemplateName argument.

item

object (ContentItem)

The item to inspect.

inspectTemplateName

string

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.

locationId

string

The geographic location to process content inspection. Reserved for future extensions.

Response body

If successful, the response body contains an instance of InspectContentResponse.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Try it!

本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Data Loss Prevention Documentation