Skip to main content

static_analysis_default_rulesets

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

Overview

Namestatic_analysis_default_rulesets
TypeResource
Iddatadog.security.static_analysis_default_rulesets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe language identifier used as the resource identifier. (example: python)
attributesobjectThe attributes of the default rulesets per language response, containing the list of default ruleset names.
typestringDefault rulesets per language resource type. (defaultRulesetsPerLanguage) (default: defaultRulesetsPerLanguage, example: defaultRulesetsPerLanguage)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_static_analysis_default_rulesetsselectlanguageGet the default SAST ruleset names for a given programming language.

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
languagestringThe programming language for which to retrieve the default rulesets.
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

Get the default SAST ruleset names for a given programming language.

SELECT
id,
attributes,
type
FROM datadog.security.static_analysis_default_rulesets
WHERE language = '{{ language }}' -- required
;