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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe name of the profile.
configSnapshotobjectThe snapshot of the configurations used to generate the profile. (id: GooglePrivacyDlpV2DataProfileConfigSnapshot)
createTimestring (google-datetime)The time the file store was first created.
dataRiskLevelobjectThe data risk level of this resource. (id: GooglePrivacyDlpV2DataRiskLevel)
dataSourceTypeobjectThe resource type that was profiled. (id: GooglePrivacyDlpV2DataSourceType)
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.
domainsarrayDomains associated with the profile.
fileClusterSummariesarrayFileClusterSummary per each cluster.
fileStoreInfoTypeSummariesarrayInfoTypes detected in this file store.
fileStoreIsEmptybooleanThe file store does not have any files. If the profiling operation failed, this is false.
fileStoreLocationstringThe location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations * Amazon S3: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
fileStorePathstringThe file store path. * Cloud Storage: gs://{bucket} * Amazon S3: s3://{bucket} * Vertex AI dataset: projects/{project_number}/locations/{location}/datasets/{dataset_id}
fullResourcestringThe resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name Example format of an S3 bucket full resource name: //cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}
lastModifiedTimestring (google-datetime)The time the file store was last modified.
locationTypestringThe location type of the file store (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated.
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)
projectDataProfilestringThe resource name of the project data profile for this file store.
projectIdstringThe Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id.
relatedResourcesarrayResources related to this profile.
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.
sampleFindingsTableobjectThe BigQuery table to which the sample findings are written. (id: GooglePrivacyDlpV2BigQueryTable)
sensitivityScoreobjectThe sensitivity score of this resource. (id: GooglePrivacyDlpV2SensitivityScore)
statestringState of a profile.
tagsarrayThe tags attached to the resource, including any tags attached during profiling.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_file_store_data_profiles_getselectprojectsId, locationsId, fileStoreDataProfilesIdGets a file store data profile.
organizations_locations_file_store_data_profiles_getselectorganizationsId, locationsId, fileStoreDataProfilesIdGets a file store data profile.
projects_locations_file_store_data_profiles_listselectprojectsId, locationsIdpageToken, pageSize, orderBy, filterLists file store data profiles for an organization.
organizations_locations_file_store_data_profiles_listselectorganizationsId, locationsIdpageToken, pageSize, orderBy, filterLists file store data profiles for an organization.
projects_locations_file_store_data_profiles_deletedeleteprojectsId, locationsId, fileStoreDataProfilesIdDelete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.
organizations_locations_file_store_data_profiles_deletedeleteorganizationsId, locationsId, fileStoreDataProfilesIdDelete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.

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
fileStoreDataProfilesIdstring
locationsIdstring
organizationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a file store data profile.

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

DELETE examples

Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.

DELETE FROM google.dlp.file_store_data_profiles
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND fileStoreDataProfilesId = '{{ fileStoreDataProfilesId }}' --required;