Skip to main content

custom_frameworks

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

Overview

Namecustom_frameworks
TypeResource
Iddatadog.security.custom_frameworks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the custom framework. (example: handle-version)
attributesobjectFull Framework Data Attributes.
typestringThe type of the resource. The value must be custom_framework. (custom_framework) (default: custom_framework, example: custom_framework)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_frameworkselecthandle, versionGet a custom framework.
create_custom_frameworkinsertdataCreate a custom framework.
update_custom_frameworkreplacehandle, version, dataUpdate a custom framework.
delete_custom_frameworkdeletehandle, versionDelete a custom framework.

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
handlestringThe framework handle
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.
versionstringThe framework version

SELECT examples

Get a custom framework.

SELECT
id,
attributes,
type
FROM datadog.security.custom_frameworks
WHERE handle = '{{ handle }}' -- required
AND version = '{{ version }}' -- required
;

INSERT examples

Create a custom framework.

INSERT INTO datadog.security.custom_frameworks (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

REPLACE examples

Update a custom framework.

REPLACE datadog.security.custom_frameworks
SET
data = '{{ data }}'
WHERE
handle = '{{ handle }}' --required
AND version = '{{ version }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a custom framework.

DELETE FROM datadog.security.custom_frameworks
WHERE handle = '{{ handle }}' --required
AND version = '{{ version }}' --required
;