stored_info_types
Creates, updates, deletes, gets or lists a stored_info_types
resource.
Overview
Name | stored_info_types |
Type | Resource |
Id | google.dlp.stored_info_types |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Resource name. |
currentVersion | object | Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state. |
pendingVersions | array | Pending versions of the stored info type. Empty if no versions are pending. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_locations_stored_info_types_get | SELECT | locationsId, organizationsId, storedInfoTypesId | Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_locations_stored_info_types_list | SELECT | locationsId, organizationsId | Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_stored_info_types_get | SELECT | organizationsId, storedInfoTypesId | Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_stored_info_types_list | SELECT | organizationsId | Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_locations_stored_info_types_get | SELECT | locationsId, projectsId, storedInfoTypesId | Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_locations_stored_info_types_list | SELECT | locationsId, projectsId | Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_stored_info_types_get | SELECT | projectsId, storedInfoTypesId | Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_stored_info_types_list | SELECT | projectsId | Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_locations_stored_info_types_create | INSERT | locationsId, organizationsId | Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_stored_info_types_create | INSERT | organizationsId | Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_locations_stored_info_types_create | INSERT | locationsId, projectsId | Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_stored_info_types_create | INSERT | projectsId | Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_locations_stored_info_types_delete | DELETE | locationsId, organizationsId, storedInfoTypesId | Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_stored_info_types_delete | DELETE | organizationsId, storedInfoTypesId | Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_locations_stored_info_types_delete | DELETE | locationsId, projectsId, storedInfoTypesId | Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_stored_info_types_delete | DELETE | projectsId, storedInfoTypesId | Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_locations_stored_info_types_patch | UPDATE | locationsId, organizationsId, storedInfoTypesId | Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
organizations_stored_info_types_patch | UPDATE | organizationsId, storedInfoTypesId | Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_locations_stored_info_types_patch | UPDATE | locationsId, projectsId, storedInfoTypesId | Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
projects_stored_info_types_patch | UPDATE | projectsId, storedInfoTypesId | Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. |
SELECT
examples
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
SELECT
name,
currentVersion,
pendingVersions
FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new stored_info_types
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dlp.stored_info_types (
projectsId,
storedInfoTypeId,
locationId,
config
)
SELECT
'{{ projectsId }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ config }}'
;
- name: your_resource_model_name
props:
- name: storedInfoTypeId
value: string
- name: locationId
value: string
- name: config
value:
- name: regex
value:
- name: groupIndexes
value:
- integer
- name: pattern
value: string
- name: dictionary
value:
- name: wordList
value:
- name: words
value:
- string
- name: cloudStoragePath
value:
- name: path
value: string
- name: description
value: string
- name: largeCustomDictionary
value:
- name: cloudStorageFileSet
value:
- name: url
value: string
- name: bigQueryField
value:
- name: table
value:
- name: projectId
value: string
- name: datasetId
value: string
- name: tableId
value: string
- name: field
value:
- name: name
value: string
- name: displayName
value: string
UPDATE
example
Updates a stored_info_types
resource.
/*+ update */
UPDATE google.dlp.stored_info_types
SET
config = '{{ config }}',
updateMask = '{{ updateMask }}'
WHERE
projectsId = '{{ projectsId }}'
AND storedInfoTypesId = '{{ storedInfoTypesId }}';
DELETE
example
Deletes the specified stored_info_types
resource.
/*+ delete */
DELETE FROM google.dlp.stored_info_types
WHERE projectsId = '{{ projectsId }}'
AND storedInfoTypesId = '{{ storedInfoTypesId }}';