Skip to main content

deidentify_templates

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

Overview

Namedeidentify_templates
TypeResource
Idgoogle.dlp.deidentify_templates

Fields

NameDatatypeDescription
namestringOutput only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID
descriptionstringShort description (max 256 chars).
createTimestringOutput only. The creation timestamp of an inspectTemplate.
deidentifyConfigobjectThe configuration that controls how the data will change.
displayNamestringDisplay name (max 256 chars).
updateTimestringOutput only. The last update timestamp of an inspectTemplate.

Methods

NameAccessible byRequired ParamsDescription
organizations_deidentify_templates_getSELECTdeidentifyTemplatesId, organizationsIdGets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_deidentify_templates_listSELECTorganizationsIdLists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_locations_deidentify_templates_getSELECTdeidentifyTemplatesId, locationsId, organizationsIdGets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_locations_deidentify_templates_listSELECTlocationsId, organizationsIdLists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_deidentify_templates_getSELECTdeidentifyTemplatesId, projectsIdGets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_deidentify_templates_listSELECTprojectsIdLists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_locations_deidentify_templates_getSELECTdeidentifyTemplatesId, locationsId, projectsIdGets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_locations_deidentify_templates_listSELECTlocationsId, projectsIdLists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_deidentify_templates_createINSERTorganizationsIdCreates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_locations_deidentify_templates_createINSERTlocationsId, organizationsIdCreates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_deidentify_templates_createINSERTprojectsIdCreates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_locations_deidentify_templates_createINSERTlocationsId, projectsIdCreates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_deidentify_templates_deleteDELETEdeidentifyTemplatesId, organizationsIdDeletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_locations_deidentify_templates_deleteDELETEdeidentifyTemplatesId, locationsId, organizationsIdDeletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_deidentify_templates_deleteDELETEdeidentifyTemplatesId, projectsIdDeletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_locations_deidentify_templates_deleteDELETEdeidentifyTemplatesId, locationsId, projectsIdDeletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_deidentify_templates_patchUPDATEdeidentifyTemplatesId, organizationsIdUpdates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
organizations_locations_deidentify_templates_patchUPDATEdeidentifyTemplatesId, locationsId, organizationsIdUpdates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_deidentify_templates_patchUPDATEdeidentifyTemplatesId, projectsIdUpdates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
projects_locations_deidentify_templates_patchUPDATEdeidentifyTemplatesId, locationsId, projectsIdUpdates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

SELECT examples

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

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

INSERT example

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

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

UPDATE example

Updates a deidentify_templates resource.

/*+ update */
UPDATE google.dlp.deidentify_templates
SET
deidentifyTemplate = '{{ deidentifyTemplate }}',
updateMask = '{{ updateMask }}'
WHERE
deidentifyTemplatesId = '{{ deidentifyTemplatesId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified deidentify_templates resource.

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