Skip to main content

file_store_data_profiles

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

Overview

Namefile_store_data_profiles
TypeResource
Idgoogle.dlp.file_store_data_profiles

Fields

NameDatatypeDescription
namestringThe name of the profile.
configSnapshotobjectSnapshot of the configurations used to generate the profile.
createTimestringThe time the file store was first 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.
dataStorageLocationsarrayFor resources that have multiple storage locations, these are those regions. For Cloud Storage this is the list of regions chosen for dual-region storage. file_store_location will normally be the corresponding multi-region for the list of individual locations. The first region is always picked as the processing and storage location for the data profile.
fileClusterSummariesarrayFileClusterSummary per each cluster.
fileStoreInfoTypeSummariesarrayInfoTypes detected in this file store.
fileStoreIsEmptybooleanThe file store does not have any files.
fileStoreLocationstringThe location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations
fileStorePathstringThe file store path. * Cloud Storage: gs://{bucket}
fullResourcestringThe resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name
lastModifiedTimestringThe time the file store was last modified.
locationTypestringThe location type of the bucket (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated.
profileLastGeneratedstringThe last time the profile was generated.
profileStatusobjectSuccess or errors for the profile generation.
projectDataProfilestringThe resource name of the project data profile for this file store.
projectIdstringThe Google Cloud project ID that owns the resource.
resourceAttributesobjectAttributes of the resource being profiled. Currently used attributes: * customer_managed_encryption: boolean - true: the resource is encrypted with a customer-managed key. - false: the resource is encrypted with a provider-managed key.
resourceLabelsobjectThe labels applied to the resource at the time the profile was generated.
resourceVisibilitystringHow broadly a resource has been shared.
sensitivityScoreobjectScore is calculated from of all elements in the data profile. A higher level means the data is more sensitive.
statestringState of a profile.

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_file_store_data_profiles_getSELECTfileStoreDataProfilesId, locationsId, organizationsIdGets a file store data profile.
organizations_locations_file_store_data_profiles_listSELECTlocationsId, organizationsIdLists file store data profiles for an organization.
projects_locations_file_store_data_profiles_getSELECTfileStoreDataProfilesId, locationsId, projectsIdGets a file store data profile.
projects_locations_file_store_data_profiles_listSELECTlocationsId, projectsIdLists file store data profiles for an organization.
organizations_locations_file_store_data_profiles_deleteDELETEfileStoreDataProfilesId, locationsId, organizationsIdDelete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
projects_locations_file_store_data_profiles_deleteDELETEfileStoreDataProfilesId, locationsId, projectsIdDelete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.

SELECT examples

Lists file store data profiles for an organization.

SELECT
name,
configSnapshot,
createTime,
dataRiskLevel,
dataSourceType,
dataStorageLocations,
fileClusterSummaries,
fileStoreInfoTypeSummaries,
fileStoreIsEmpty,
fileStoreLocation,
fileStorePath,
fullResource,
lastModifiedTime,
locationType,
profileLastGenerated,
profileStatus,
projectDataProfile,
projectId,
resourceAttributes,
resourceLabels,
resourceVisibility,
sensitivityScore,
state
FROM google.dlp.file_store_data_profiles
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified file_store_data_profiles resource.

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