Skip to main content

static_analysis_secret_rules

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

Overview

Namestatic_analysis_secret_rules
TypeResource
Iddatadog.security.static_analysis_secret_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the secret rule resource.
attributesobjectThe attributes of a secret detection rule, including its pattern, priority, and validation configuration.
typestringSecret rule resource type. (secret_rule) (default: secret_rule, example: secret_rule)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_secrets_rulesselectReturns a list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID.

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
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Returns a list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID.

SELECT
id,
attributes,
type
FROM datadog.security.static_analysis_secret_rules
;