Skip to main content

inspect_templates

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

Overview

Nameinspect_templates
TypeResource
Idgoogle.dlp.inspect_templates

Fields

NameDatatypeDescription
namestringOutput only. The template name. The template will have one of the following formats: projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID;
descriptionstringShort description (max 256 chars).
createTimestringOutput only. The creation timestamp of an inspectTemplate.
displayNamestringDisplay name (max 256 chars).
inspectConfigobjectConfiguration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.
updateTimestringOutput only. The last update timestamp of an inspectTemplate.

Methods

NameAccessible byRequired ParamsDescription
organizations_inspect_templates_getSELECTinspectTemplatesId, organizationsIdGets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_inspect_templates_listSELECTorganizationsIdLists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_locations_inspect_templates_getSELECTinspectTemplatesId, locationsId, organizationsIdGets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_locations_inspect_templates_listSELECTlocationsId, organizationsIdLists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_inspect_templates_getSELECTinspectTemplatesId, projectsIdGets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_inspect_templates_listSELECTprojectsIdLists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_locations_inspect_templates_getSELECTinspectTemplatesId, locationsId, projectsIdGets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_locations_inspect_templates_listSELECTlocationsId, projectsIdLists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_inspect_templates_createINSERTorganizationsIdCreates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_locations_inspect_templates_createINSERTlocationsId, organizationsIdCreates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_inspect_templates_createINSERTprojectsIdCreates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_locations_inspect_templates_createINSERTlocationsId, projectsIdCreates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_inspect_templates_deleteDELETEinspectTemplatesId, organizationsIdDeletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_locations_inspect_templates_deleteDELETEinspectTemplatesId, locationsId, organizationsIdDeletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_inspect_templates_deleteDELETEinspectTemplatesId, projectsIdDeletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_locations_inspect_templates_deleteDELETEinspectTemplatesId, locationsId, projectsIdDeletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_inspect_templates_patchUPDATEinspectTemplatesId, organizationsIdUpdates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
organizations_locations_inspect_templates_patchUPDATEinspectTemplatesId, locationsId, organizationsIdUpdates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_inspect_templates_patchUPDATEinspectTemplatesId, projectsIdUpdates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
projects_locations_inspect_templates_patchUPDATEinspectTemplatesId, locationsId, projectsIdUpdates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

SELECT examples

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

SELECT
name,
description,
createTime,
displayName,
inspectConfig,
updateTime
FROM google.dlp.inspect_templates
WHERE projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new inspect_templates resource.

/*+ create */
INSERT INTO google.dlp.inspect_templates (
projectsId,
inspectTemplate,
templateId,
locationId
)
SELECT
'{{ projectsId }}',
'{{ inspectTemplate }}',
'{{ templateId }}',
'{{ locationId }}'
;

UPDATE example

Updates a inspect_templates resource.

/*+ update */
UPDATE google.dlp.inspect_templates
SET
updateMask = '{{ updateMask }}',
inspectTemplate = '{{ inspectTemplate }}'
WHERE
inspectTemplatesId = '{{ inspectTemplatesId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified inspect_templates resource.

/*+ delete */
DELETE FROM google.dlp.inspect_templates
WHERE inspectTemplatesId = '{{ inspectTemplatesId }}'
AND projectsId = '{{ projectsId }}';