Skip to main content

column_data_profiles

Creates, updates, deletes, gets or lists a column_data_profiles resource.

Overview

Namecolumn_data_profiles
TypeResource
Idgoogle.dlp.column_data_profiles

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe name of the profile.
columnstringThe name of the column.
columnInfoTypeobjectThe infoType details for this column. (id: GooglePrivacyDlpV2InfoTypeSummary)
columnTypestringThe data type of a given column.
dataRiskLevelobjectThe data risk level for this column. (id: GooglePrivacyDlpV2DataRiskLevel)
datasetIdstringThe BigQuery dataset ID, if the resource profiled is a BigQuery table.
datasetLocationstringIf supported, the location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported BigQuery locations.
datasetProjectIdstringThe Google Cloud project ID that owns the profiled resource.
estimatedNullPercentagestringApproximate percentage of entries being null in the column.
estimatedUniquenessScorestringApproximate uniqueness of the column.
freeTextScorenumber (double)The likelihood that this column contains free-form text. A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1.
otherMatchesarrayOther types found within this column. List will be unordered.
policyStatestringIndicates if a policy tag has been applied to the column.
profileLastGeneratedstring (google-datetime)The last time the profile was generated.
profileStatusobjectSuccess or error status from the most recent profile generation attempt. May be empty if the profile is still being generated. (id: GooglePrivacyDlpV2ProfileStatus)
sensitivityScoreobjectThe sensitivity of this column. (id: GooglePrivacyDlpV2SensitivityScore)
statestringState of a profile.
tableDataProfilestringThe resource name of the table data profile.
tableFullResourcestringThe resource name of the resource this column is within.
tableIdstringThe table ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_column_data_profiles_getselectprojectsId, locationsId, columnDataProfilesIdGets a column data profile.
organizations_locations_column_data_profiles_getselectorganizationsId, locationsId, columnDataProfilesIdGets a column data profile.
projects_locations_column_data_profiles_listselectprojectsId, locationsIdpageToken, pageSize, orderBy, filterLists column data profiles for an organization.
organizations_locations_column_data_profiles_listselectorganizationsId, locationsIdpageToken, pageSize, orderBy, filterLists column data profiles for an organization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
columnDataProfilesIdstring
locationsIdstring
organizationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a column data profile.

SELECT
name,
column,
columnInfoType,
columnType,
dataRiskLevel,
datasetId,
datasetLocation,
datasetProjectId,
estimatedNullPercentage,
estimatedUniquenessScore,
freeTextScore,
otherMatches,
policyState,
profileLastGenerated,
profileStatus,
sensitivityScore,
state,
tableDataProfile,
tableFullResource,
tableId
FROM google.dlp.column_data_profiles
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND columnDataProfilesId = '{{ columnDataProfilesId }}' -- required;