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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringResource name.
currentVersionobjectCurrent version of the stored info type. (id: GooglePrivacyDlpV2StoredInfoTypeVersion)
pendingVersionsarrayPending versions of the stored info type. Empty if no versions are pending.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_stored_info_types_getselectprojectsId, locationsId, storedInfoTypesIdGets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_locations_stored_info_types_getselectorganizationsId, locationsId, storedInfoTypesIdGets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_locations_stored_info_types_listselectprojectsId, locationsIdpageToken, pageSize, orderBy, locationIdLists 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.
organizations_locations_stored_info_types_listselectorganizationsId, locationsIdpageToken, pageSize, orderBy, locationIdLists 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.
projects_stored_info_types_listselectprojectsIdpageToken, pageSize, orderBy, locationIdLists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_stored_info_types_listselectorganizationsIdpageToken, pageSize, orderBy, locationIdLists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
projects_locations_stored_info_types_createinsertprojectsId, locationsIdCreates 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_createinsertorganizationsId, locationsIdCreates 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_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_patchupdateprojectsId, locationsId, 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_locations_stored_info_types_patchupdateorganizationsId, locationsId, 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.
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_deletedeleteprojectsId, locationsId, storedInfoTypesIdDeletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
organizations_locations_stored_info_types_deletedeleteorganizationsId, locationsId, 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_stored_info_types_deletedeleteorganizationsId, storedInfoTypesIdDeletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

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

SELECT examples

Gets a stored infoType. 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 }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' -- required;

INSERT examples

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.

INSERT INTO google.dlp.stored_info_types (
data__config,
data__storedInfoTypeId,
data__locationId,
projectsId,
locationsId
)
SELECT
'{{ config }}',
'{{ storedInfoTypeId }}',
'{{ locationId }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
currentVersion,
pendingVersions
;

UPDATE examples

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.

UPDATE google.dlp.stored_info_types
SET
data__config = '{{ config }}',
data__updateMask = '{{ updateMask }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storedInfoTypesId = '{{ storedInfoTypesId }}' --required
RETURNING
name,
currentVersion,
pendingVersions;

DELETE examples

Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

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