inspect_templates
Creates, updates, deletes, gets or lists a inspect_templates
resource.
Overview
Name | inspect_templates |
Type | Resource |
Id | google.dlp.inspect_templates |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output 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 ; |
description | string | Short description (max 256 chars). |
createTime | string | Output only. The creation timestamp of an inspectTemplate. |
displayName | string | Display name (max 256 chars). |
inspectConfig | object | Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used. |
updateTime | string | Output only. The last update timestamp of an inspectTemplate. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_inspect_templates_get | SELECT | inspectTemplatesId, organizationsId | Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_inspect_templates_list | SELECT | organizationsId | Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_locations_inspect_templates_get | SELECT | inspectTemplatesId, locationsId, organizationsId | Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_locations_inspect_templates_list | SELECT | locationsId, organizationsId | Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_inspect_templates_get | SELECT | inspectTemplatesId, projectsId | Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_inspect_templates_list | SELECT | projectsId | Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_locations_inspect_templates_get | SELECT | inspectTemplatesId, locationsId, projectsId | Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_locations_inspect_templates_list | SELECT | locationsId, projectsId | Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_inspect_templates_create | INSERT | organizationsId | Creates 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_create | INSERT | locationsId, organizationsId | Creates 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_create | INSERT | projectsId | Creates 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_create | INSERT | locationsId, projectsId | Creates 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_delete | DELETE | inspectTemplatesId, organizationsId | Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_locations_inspect_templates_delete | DELETE | inspectTemplatesId, locationsId, organizationsId | Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_inspect_templates_delete | DELETE | inspectTemplatesId, projectsId | Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_locations_inspect_templates_delete | DELETE | inspectTemplatesId, locationsId, projectsId | Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_inspect_templates_patch | UPDATE | inspectTemplatesId, organizationsId | Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
organizations_locations_inspect_templates_patch | UPDATE | inspectTemplatesId, locationsId, organizationsId | Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_inspect_templates_patch | UPDATE | inspectTemplatesId, projectsId | Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. |
projects_locations_inspect_templates_patch | UPDATE | inspectTemplatesId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dlp.inspect_templates (
projectsId,
inspectTemplate,
templateId,
locationId
)
SELECT
'{{ projectsId }}',
'{{ inspectTemplate }}',
'{{ templateId }}',
'{{ locationId }}'
;
- name: your_resource_model_name
props:
- name: inspectTemplate
value:
- name: updateTime
value: string
- name: inspectConfig
value:
- name: contentOptions
value:
- string
- name: infoTypes
value:
- - name: sensitivityScore
value:
- name: score
value: string
- name: version
value: string
- name: name
value: string
- name: minLikelihood
value: string
- name: includeQuote
value: boolean
- name: minLikelihoodPerInfoType
value:
- - name: minLikelihood
value: string
- name: infoType
value:
- name: version
value: string
- name: name
value: string
- name: limits
value:
- name: maxFindingsPerRequest
value: integer
- name: maxFindingsPerItem
value: integer
- name: maxFindingsPerInfoType
value:
- - name: maxFindings
value: integer
- name: customInfoTypes
value:
- - name: exclusionType
value: string
- name: storedType
value:
- name: createTime
value: string
- name: name
value: string
- name: surrogateType
value: []
- name: regex
value:
- name: groupIndexes
value:
- integer
- name: pattern
value: string
- name: detectionRules
value:
- - name: hotwordRule
value:
- name: proximity
value:
- name: windowBefore
value: integer
- name: windowAfter
value: integer
- name: likelihoodAdjustment
value:
- name: relativeLikelihood
value: integer
- name: fixedLikelihood
value: string
- name: dictionary
value:
- name: wordList
value:
- name: words
value:
- string
- name: cloudStoragePath
value:
- name: path
value: string
- name: likelihood
value: string
- name: excludeInfoTypes
value: boolean
- name: ruleSet
value:
- - name: rules
value:
- - name: exclusionRule
value:
- name: matchingType
value: string
- name: excludeInfoTypes
value:
- name: infoTypes
value:
- - name: version
value: string
- name: name
value: string
- name: excludeByHotword
value: []
- name: infoTypes
value:
- - name: version
value: string
- name: name
value: string
- name: displayName
value: string
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: templateId
value: string
- name: locationId
value: string
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 }}';