deidentify_templates
Creates, updates, deletes, gets or lists a deidentify_templates
resource.
Overview
Name | deidentify_templates |
Type | Resource |
Id | google.dlp.deidentify_templates |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output 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 |
description | string | Short description (max 256 chars). |
createTime | string | Output only. The creation timestamp of an inspectTemplate. |
deidentifyConfig | object | The configuration that controls how the data will change. |
displayName | string | Display name (max 256 chars). |
updateTime | string | Output only. The last update timestamp of an inspectTemplate. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_deidentify_templates_get | SELECT | deidentifyTemplatesId, organizationsId | Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_deidentify_templates_list | SELECT | organizationsId | Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_locations_deidentify_templates_get | SELECT | deidentifyTemplatesId, locationsId, organizationsId | Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_locations_deidentify_templates_list | SELECT | locationsId, organizationsId | Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_deidentify_templates_get | SELECT | deidentifyTemplatesId, projectsId | Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_deidentify_templates_list | SELECT | projectsId | Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_locations_deidentify_templates_get | SELECT | deidentifyTemplatesId, locationsId, projectsId | Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_locations_deidentify_templates_list | SELECT | locationsId, projectsId | Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_deidentify_templates_create | INSERT | organizationsId | Creates 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_create | INSERT | locationsId, organizationsId | Creates 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_create | INSERT | projectsId | Creates 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_create | INSERT | locationsId, projectsId | Creates 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_delete | DELETE | deidentifyTemplatesId, organizationsId | Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_locations_deidentify_templates_delete | DELETE | deidentifyTemplatesId, locationsId, organizationsId | Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_deidentify_templates_delete | DELETE | deidentifyTemplatesId, projectsId | Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_locations_deidentify_templates_delete | DELETE | deidentifyTemplatesId, locationsId, projectsId | Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_deidentify_templates_patch | UPDATE | deidentifyTemplatesId, organizationsId | Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
organizations_locations_deidentify_templates_patch | UPDATE | deidentifyTemplatesId, locationsId, organizationsId | Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_deidentify_templates_patch | UPDATE | deidentifyTemplatesId, projectsId | Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. |
projects_locations_deidentify_templates_patch | UPDATE | deidentifyTemplatesId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dlp.deidentify_templates (
projectsId,
deidentifyTemplate,
templateId,
locationId
)
SELECT
'{{ projectsId }}',
'{{ deidentifyTemplate }}',
'{{ templateId }}',
'{{ locationId }}'
;
- name: your_resource_model_name
props:
- name: deidentifyTemplate
value:
- name: deidentifyConfig
value:
- name: transformationErrorHandling
value:
- name: leaveUntransformed
value: []
- name: throwError
value: []
- name: recordTransformations
value:
- name: fieldTransformations
value:
- - name: infoTypeTransformations
value:
- name: transformations
value:
- - name: primitiveTransformation
value:
- name: fixedSizeBucketingConfig
value:
- name: bucketSize
value: number
- name: lowerBound
value:
- name: integerValue
value: string
- name: dayOfWeekValue
value: string
- name: floatValue
value: number
- name: stringValue
value: string
- name: timestampValue
value: string
- name: dateValue
value:
- name: day
value: integer
- name: year
value: integer
- name: month
value: integer
- name: booleanValue
value: boolean
- name: timeValue
value:
- name: hours
value: integer
- name: minutes
value: integer
- name: seconds
value: integer
- name: nanos
value: integer
- name: dateShiftConfig
value:
- name: cryptoKey
value:
- name: transient
value:
- name: name
value: string
- name: unwrapped
value:
- name: key
value: string
- name: kmsWrapped
value:
- name: cryptoKeyName
value: string
- name: wrappedKey
value: string
- name: context
value:
- name: name
value: string
- name: upperBoundDays
value: integer
- name: lowerBoundDays
value: integer
- name: redactConfig
value: []
- name: cryptoDeterministicConfig
value:
- name: surrogateInfoType
value:
- name: sensitivityScore
value:
- name: score
value: string
- name: version
value: string
- name: name
value: string
- name: replaceDictionaryConfig
value:
- name: wordList
value:
- name: words
value:
- string
- name: characterMaskConfig
value:
- name: numberToMask
value: integer
- name: reverseOrder
value: boolean
- name: charactersToIgnore
value:
- - name: commonCharactersToIgnore
value: string
- name: charactersToSkip
value: string
- name: maskingCharacter
value: string
- name: cryptoHashConfig
value: []
- name: bucketingConfig
value:
- name: buckets
value:
- []
- name: replaceConfig
value: []
- name: cryptoReplaceFfxFpeConfig
value:
- name: customAlphabet
value: string
- name: commonAlphabet
value: string
- name: radix
value: integer
- name: timePartConfig
value:
- name: partToExtract
value: string
- name: replaceWithInfoTypeConfig
value: []
- name: infoTypes
value:
- - name: version
value: string
- name: name
value: string
- name: condition
value:
- name: expressions
value:
- name: conditions
value:
- name: conditions
value:
- - name: operator
value: string
- name: logicalOperator
value: string
- name: fields
value:
- - name: name
value: string
- name: recordSuppressions
value:
- []
- name: imageTransformations
value:
- name: transforms
value:
- - name: allInfoTypes
value: []
- name: selectedInfoTypes
value:
- name: infoTypes
value:
- - name: version
value: string
- name: name
value: string
- name: allText
value: []
- name: redactionColor
value:
- name: blue
value: number
- name: red
value: number
- name: green
value: number
- name: displayName
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: name
value: string
- name: templateId
value: string
- name: locationId
value: string
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 }}';