Skip to main content

security_settings

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

Overview

Namesecurity_settings
TypeResource
Idgoogle.dialogflow.security_settings

Fields

NameDatatypeDescription
namestringResource name of the settings. Required for the SecuritySettingsService.UpdateSecuritySettings method. SecuritySettingsService.CreateSecuritySettings populates the name automatically. Format: projects//locations//securitySettings/.
audioExportSettingsobjectSettings for exporting audio.
deidentifyTemplatestringDLP deidentify template name. Use this template to define de-identification configuration for the content. The DLP De-identify Templates Reader role is needed on the Dialogflow service identity service account (has the form service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com) for your agent's project. If empty, Dialogflow replaces sensitive info with [redacted] text. The template name will have one of the following formats: projects//locations//deidentifyTemplates/ OR organizations//locations//deidentifyTemplates/ Note: deidentify_template must be located in the same region as the SecuritySettings.
displayNamestringRequired. The human-readable name of the security settings, unique within the location.
insightsExportSettingsobjectSettings for exporting conversations to Insights.
inspectTemplatestringDLP inspect template name. Use this template to define inspect base settings. The DLP Inspect Templates Reader role is needed on the Dialogflow service identity service account (has the form service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com) for your agent's project. If empty, we use the default DLP inspect config. The template name will have one of the following formats: projects//locations//inspectTemplates/ OR organizations//locations//inspectTemplates/ Note: inspect_template must be located in the same region as the SecuritySettings.
purgeDataTypesarrayList of types of data to remove when retention settings triggers purge.
redactionScopestringDefines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to – for example, Cloud logging.
redactionStrategystringStrategy that defines how we do redaction.
retentionStrategystringSpecifies the retention behavior defined by SecuritySettings.RetentionStrategy.
retentionWindowDaysintegerRetains the data for the specified number of days. User must set a value lower than Dialogflow's default 365d TTL (30 days for Agent Assist traffic), higher value will be ignored and use default. Setting a value higher than that has no effect. A missing value or setting to 0 also means we use default TTL. When data retention configuration is changed, it only applies to the data created after the change; the TTL of existing data created before the change stays intact.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_security_settings_getSELECTlocationsId, projectsId, securitySettingsIdRetrieves the specified SecuritySettings. The returned settings may be stale by up to 1 minute.
projects_locations_security_settings_listSELECTlocationsId, projectsIdReturns the list of all security settings in the specified location.
projects_locations_security_settings_createINSERTlocationsId, projectsIdCreate security settings in the specified location.
projects_locations_security_settings_deleteDELETElocationsId, projectsId, securitySettingsIdDeletes the specified SecuritySettings.
projects_locations_security_settings_patchUPDATElocationsId, projectsId, securitySettingsIdUpdates the specified SecuritySettings.

SELECT examples

Returns the list of all security settings in the specified location.

SELECT
name,
audioExportSettings,
deidentifyTemplate,
displayName,
insightsExportSettings,
inspectTemplate,
purgeDataTypes,
redactionScope,
redactionStrategy,
retentionStrategy,
retentionWindowDays
FROM google.dialogflow.security_settings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.dialogflow.security_settings (
locationsId,
projectsId,
name,
displayName,
redactionStrategy,
redactionScope,
inspectTemplate,
deidentifyTemplate,
retentionWindowDays,
retentionStrategy,
purgeDataTypes,
audioExportSettings,
insightsExportSettings
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ redactionStrategy }}',
'{{ redactionScope }}',
'{{ inspectTemplate }}',
'{{ deidentifyTemplate }}',
'{{ retentionWindowDays }}',
'{{ retentionStrategy }}',
'{{ purgeDataTypes }}',
'{{ audioExportSettings }}',
'{{ insightsExportSettings }}'
;

UPDATE example

Updates a security_settings resource.

/*+ update */
UPDATE google.dialogflow.security_settings
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
redactionStrategy = '{{ redactionStrategy }}',
redactionScope = '{{ redactionScope }}',
inspectTemplate = '{{ inspectTemplate }}',
deidentifyTemplate = '{{ deidentifyTemplate }}',
retentionWindowDays = '{{ retentionWindowDays }}',
retentionStrategy = '{{ retentionStrategy }}',
purgeDataTypes = '{{ purgeDataTypes }}',
audioExportSettings = '{{ audioExportSettings }}',
insightsExportSettings = '{{ insightsExportSettings }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND securitySettingsId = '{{ securitySettingsId }}';

DELETE example

Deletes the specified security_settings resource.

/*+ delete */
DELETE FROM google.dialogflow.security_settings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND securitySettingsId = '{{ securitySettingsId }}';