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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringResource name of the settings. Required for the SecuritySettingsService.UpdateSecuritySettings method. SecuritySettingsService.CreateSecuritySettings populates the name automatically. Format: projects//locations//securitySettings/.
audioExportSettingsobjectControls audio export settings for post-conversation analytics when ingesting audio to conversations via Participants.AnalyzeContent or Participants.StreamingAnalyzeContent. If retention_strategy is set to REMOVE_AFTER_CONVERSATION or audio_export_settings.gcs_bucket is empty, audio export is disabled. If audio export is enabled, audio is recorded and saved to audio_export_settings.gcs_bucket, subject to retention policy of audio_export_settings.gcs_bucket. This setting won't effect audio input for implicit sessions via Sessions.DetectIntent or Sessions.StreamingDetectIntent. (id: GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings)
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.
insightsExportSettingsobjectControls conversation exporting settings to Insights after conversation is completed. If retention_strategy is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter what you configure here. (id: GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings)
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.
retentionWindowDaysinteger (int32)Retains 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_security_settings_getselectprojectsId, locationsId, securitySettingsIdRetrieves the specified SecuritySettings. The returned settings may be stale by up to 1 minute.
projects_locations_security_settings_listselectprojectsId, locationsIdpageSize, pageTokenReturns the list of all security settings in the specified location.
projects_locations_security_settings_createinsertprojectsId, locationsIdCreate security settings in the specified location.
projects_locations_security_settings_patchupdateprojectsId, locationsId, securitySettingsIdupdateMaskUpdates the specified SecuritySettings.
projects_locations_security_settings_deletedeleteprojectsId, locationsId, securitySettingsIdDeletes the specified SecuritySettings.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
securitySettingsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves the specified SecuritySettings. The returned settings may be stale by up to 1 minute.

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

INSERT examples

Create security settings in the specified location.

INSERT INTO google.dialogflow.security_settings (
data__name,
data__displayName,
data__redactionStrategy,
data__redactionScope,
data__inspectTemplate,
data__deidentifyTemplate,
data__retentionWindowDays,
data__retentionStrategy,
data__purgeDataTypes,
data__audioExportSettings,
data__insightsExportSettings,
projectsId,
locationsId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ redactionStrategy }}',
'{{ redactionScope }}',
'{{ inspectTemplate }}',
'{{ deidentifyTemplate }}',
{{ retentionWindowDays }},
'{{ retentionStrategy }}',
'{{ purgeDataTypes }}',
'{{ audioExportSettings }}',
'{{ insightsExportSettings }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
audioExportSettings,
deidentifyTemplate,
displayName,
insightsExportSettings,
inspectTemplate,
purgeDataTypes,
redactionScope,
redactionStrategy,
retentionStrategy,
retentionWindowDays
;

UPDATE examples

Updates the specified SecuritySettings.

UPDATE google.dialogflow.security_settings
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__redactionStrategy = '{{ redactionStrategy }}',
data__redactionScope = '{{ redactionScope }}',
data__inspectTemplate = '{{ inspectTemplate }}',
data__deidentifyTemplate = '{{ deidentifyTemplate }}',
data__retentionWindowDays = {{ retentionWindowDays }},
data__retentionStrategy = '{{ retentionStrategy }}',
data__purgeDataTypes = '{{ purgeDataTypes }}',
data__audioExportSettings = '{{ audioExportSettings }}',
data__insightsExportSettings = '{{ insightsExportSettings }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securitySettingsId = '{{ securitySettingsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
audioExportSettings,
deidentifyTemplate,
displayName,
insightsExportSettings,
inspectTemplate,
purgeDataTypes,
redactionScope,
redactionStrategy,
retentionStrategy,
retentionWindowDays;

DELETE examples

Deletes the specified SecuritySettings.

DELETE FROM google.dialogflow.security_settings
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securitySettingsId = '{{ securitySettingsId }}' --required;