Skip to main content

stored_info_types

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

Overview

Namestored_info_types
TypeResource
Idgoogle.dlp.stored_info_types

Fields

NameDatatypeDescription
namestringResource name.
currentVersionobjectVersion of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.
pendingVersionsarrayPending versions of the stored info type. Empty if no versions are pending.

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_stored_info_types_getSELECTlocationsId, organizationsId, storedInfoTypesIdGets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_locations_stored_info_types_listSELECTlocationsId, organizationsIdLists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_stored_info_types_getSELECTorganizationsId, storedInfoTypesIdGets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_stored_info_types_listSELECTorganizationsIdLists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_locations_stored_info_types_getSELECTlocationsId, projectsId, storedInfoTypesIdGets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_locations_stored_info_types_listSELECTlocationsId, projectsIdLists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_stored_info_types_getSELECTprojectsId, storedInfoTypesIdGets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_stored_info_types_listSELECTprojectsIdLists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_locations_stored_info_types_createINSERTlocationsId, organizationsIdCreates 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_createINSERTorganizationsIdCreates 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_createINSERTlocationsId, projectsIdCreates 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_createINSERTprojectsIdCreates 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_deleteDELETElocationsId, organizationsId, storedInfoTypesIdDeletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_stored_info_types_deleteDELETEorganizationsId, storedInfoTypesIdDeletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_locations_stored_info_types_deleteDELETElocationsId, projectsId, storedInfoTypesIdDeletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_stored_info_types_deleteDELETEprojectsId, storedInfoTypesIdDeletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_locations_stored_info_types_patchUPDATElocationsId, organizationsId, storedInfoTypesIdUpdates 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_patchUPDATEorganizationsId, storedInfoTypesIdUpdates 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_patchUPDATElocationsId, projectsId, storedInfoTypesIdUpdates 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_patchUPDATEprojectsId, storedInfoTypesIdUpdates 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.

/*+ create */
INSERT INTO google.dlp.stored_info_types (
projectsId,
storedInfoTypeId,
locationId,
config
)
SELECT
'{{ projectsId }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ config }}'
;

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 }}';