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:

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. (COLUMN_DATA_TYPE_UNSPECIFIED, TYPE_INT64, TYPE_BOOL, TYPE_FLOAT64, TYPE_STRING, TYPE_BYTES, TYPE_TIMESTAMP, TYPE_DATE, TYPE_TIME, TYPE_DATETIME, TYPE_GEOGRAPHY, TYPE_NUMERIC, TYPE_RECORD, TYPE_BIGNUMERIC, TYPE_JSON, TYPE_INTERVAL, TYPE_RANGE_DATE, TYPE_RANGE_DATETIME, TYPE_RANGE_TIMESTAMP)
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://docs.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. (NULL_PERCENTAGE_LEVEL_UNSPECIFIED, NULL_PERCENTAGE_VERY_LOW, NULL_PERCENTAGE_LOW, NULL_PERCENTAGE_MEDIUM, NULL_PERCENTAGE_HIGH)
estimatedUniquenessScorestringApproximate uniqueness of the column. (UNIQUENESS_SCORE_LEVEL_UNSPECIFIED, UNIQUENESS_SCORE_LOW, UNIQUENESS_SCORE_MEDIUM, UNIQUENESS_SCORE_HIGH)
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. (COLUMN_POLICY_STATE_UNSPECIFIED, COLUMN_POLICY_TAGGED)
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. (STATE_UNSPECIFIED, RUNNING, DONE)
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, filter, pageSize, orderByLists column data profiles for an organization.
organizations_locations_column_data_profiles_listselectorganizationsId, locationsIdpageSize, orderBy, pageToken, 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
;