Method: infoTypes.list

Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.

HTTP request

GET https://dlp.googleapis.com/v2/infoTypes

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
languageCode

string

Optional BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.

filter

string

Optional filter to only return infoTypes supported by certain parts of the API. Defaults to supportedBy=INSPECT.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response to the infoTypes.list request.

JSON representation
{
  "infoTypes": [
    {
      object(InfoTypeDescription)
    }
  ]
}
Fields
infoTypes[]

object(InfoTypeDescription)

Set of sensitive infoTypes.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

InfoTypeDescription

InfoType description.

JSON representation
{
  "name": string,
  "displayName": string,
  "supportedBy": [
    enum(InfoTypeSupportedBy)
  ],
  "description": string
}
Fields
name

string

Internal name of the infoType.

displayName

string

Human readable form of the infoType name.

supportedBy[]

enum(InfoTypeSupportedBy)

Which parts of the API supports this InfoType.

description

string

Description of the infotype. Translated when language is provided in the request.

InfoTypeSupportedBy

Parts of the APIs which use certain infoTypes.

Enums
ENUM_TYPE_UNSPECIFIED
INSPECT Supported by the inspect operations.
RISK_ANALYSIS Supported by the risk analysis operations.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Data Loss Prevention