file_store_data_profiles
Creates, updates, deletes, gets or lists a file_store_data_profiles
resource.
Overview
Name | file_store_data_profiles |
Type | Resource |
Id | google.dlp.file_store_data_profiles |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the profile. |
configSnapshot | object | Snapshot of the configurations used to generate the profile. |
createTime | string | The time the file store was first created. |
dataRiskLevel | object | Score is a summary of all elements in the data profile. A higher number means more risk. |
dataSourceType | object | Message used to identify the type of resource being profiled. |
dataStorageLocations | array | For 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. |
fileClusterSummaries | array | FileClusterSummary per each cluster. |
fileStoreInfoTypeSummaries | array | InfoTypes detected in this file store. |
fileStoreIsEmpty | boolean | The file store does not have any files. |
fileStoreLocation | string | The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations |
fileStorePath | string | The file store path. * Cloud Storage: gs://{bucket} |
fullResource | string | The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name |
lastModifiedTime | string | The time the file store was last modified. |
locationType | string | The location type of the bucket (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated. |
profileLastGenerated | string | The last time the profile was generated. |
profileStatus | object | Success or errors for the profile generation. |
projectDataProfile | string | The resource name of the project data profile for this file store. |
projectId | string | The Google Cloud project ID that owns the resource. |
resourceAttributes | object | Attributes 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. |
resourceLabels | object | The labels applied to the resource at the time the profile was generated. |
resourceVisibility | string | How broadly a resource has been shared. |
sensitivityScore | object | Score is calculated from of all elements in the data profile. A higher level means the data is more sensitive. |
state | string | State of a profile. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_locations_file_store_data_profiles_get | SELECT | fileStoreDataProfilesId, locationsId, organizationsId | Gets a file store data profile. |
organizations_locations_file_store_data_profiles_list | SELECT | locationsId, organizationsId | Lists file store data profiles for an organization. |
projects_locations_file_store_data_profiles_get | SELECT | fileStoreDataProfilesId, locationsId, projectsId | Gets a file store data profile. |
projects_locations_file_store_data_profiles_list | SELECT | locationsId, projectsId | Lists file store data profiles for an organization. |
organizations_locations_file_store_data_profiles_delete | DELETE | fileStoreDataProfilesId, locationsId, organizationsId | Delete 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_delete | DELETE | fileStoreDataProfilesId, locationsId, projectsId | Delete 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 }}';