Skip to main content

table_data_profiles

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

Overview

Nametable_data_profiles
TypeResource
Idgoogle.dlp.table_data_profiles

Fields

NameDatatypeDescription
namestringThe name of the profile.
configSnapshotobjectSnapshot of the configurations used to generate the profile.
createTimestringThe time at which the table was created.
dataRiskLevelobjectScore is a summary of all elements in the data profile. A higher number means more risk.
dataSourceTypeobjectMessage used to identify the type of resource being profiled.
datasetIdstringIf the resource is BigQuery, the dataset ID.
datasetLocationstringIf supported, the location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations.
datasetProjectIdstringThe Google Cloud project ID that owns the resource.
encryptionStatusstringHow the table is encrypted.
expirationTimestringOptional. The time when this table expires.
failedColumnCountstringThe number of columns skipped in the table because of an error.
fullResourcestringThe resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name
lastModifiedTimestringThe time when this table was last modified
otherInfoTypesarrayOther infoTypes found in this table's data.
predictedInfoTypesarrayThe infoTypes predicted from this table's data.
profileLastGeneratedstringThe last time the profile was generated.
profileStatusobjectSuccess or errors for the profile generation.
projectDataProfilestringThe resource name of the project data profile for this table.
resourceLabelsobjectThe labels applied to the resource at the time the profile was generated.
resourceVisibilitystringHow broadly a resource has been shared.
rowCountstringNumber of rows in the table when the profile was generated. This will not be populated for BigLake tables.
scannedColumnCountstringThe number of columns profiled in the table.
sensitivityScoreobjectScore is calculated from of all elements in the data profile. A higher level means the data is more sensitive.
statestringState of a profile.
tableIdstringIf the resource is BigQuery, the BigQuery table ID.
tableSizeBytesstringThe size of the table when the profile was generated.

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_table_data_profiles_getSELECTlocationsId, organizationsId, tableDataProfilesIdGets a table data profile.
organizations_locations_table_data_profiles_listSELECTlocationsId, organizationsIdLists table data profiles for an organization.
projects_locations_table_data_profiles_getSELECTlocationsId, projectsId, tableDataProfilesIdGets a table data profile.
projects_locations_table_data_profiles_listSELECTlocationsId, projectsIdLists table data profiles for an organization.
organizations_locations_table_data_profiles_deleteDELETElocationsId, organizationsId, tableDataProfilesIdDelete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
projects_locations_table_data_profiles_deleteDELETElocationsId, projectsId, tableDataProfilesIdDelete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.

SELECT examples

Lists table data profiles for an organization.

SELECT
name,
configSnapshot,
createTime,
dataRiskLevel,
dataSourceType,
datasetId,
datasetLocation,
datasetProjectId,
encryptionStatus,
expirationTime,
failedColumnCount,
fullResource,
lastModifiedTime,
otherInfoTypes,
predictedInfoTypes,
profileLastGenerated,
profileStatus,
projectDataProfile,
resourceLabels,
resourceVisibility,
rowCount,
scannedColumnCount,
sensitivityScore,
state,
tableId,
tableSizeBytes
FROM google.dlp.table_data_profiles
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified table_data_profiles resource.

/*+ delete */
DELETE FROM google.dlp.table_data_profiles
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND tableDataProfilesId = '{{ tableDataProfilesId }}';