Skip to main content

tag_pipeline_rulesets

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

Overview

Nametag_pipeline_rulesets
TypeResource
Iddatadog.cloud_costs.tag_pipeline_rulesets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe RulesetRespData id.
attributesobjectThe definition of RulesetRespDataAttributes object.
typestringRuleset resource type. (ruleset) (default: ruleset, example: ruleset)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tag_pipelines_rulesetselectruleset_idGet a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
list_tag_pipelines_rulesetsselectList all tag pipeline rulesets - Retrieve a list of all tag pipeline rulesets for the organization
create_tag_pipelines_rulesetinsertCreate a new tag pipeline ruleset with the specified rules and configuration
update_tag_pipelines_rulesetupdateruleset_idUpdate a tag pipeline ruleset - Update an existing tag pipeline ruleset with new rules and configuration
delete_tag_pipelines_rulesetdeleteruleset_idDelete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID
reorder_tag_pipelines_rulesetsexecdataReorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets
validate_queryexecValidate a tag pipeline query - Validate the syntax and structure of a tag pipeline query

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
ruleset_idstringThe unique identifier of the ruleset
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 a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID

SELECT
id,
attributes,
type
FROM datadog.cloud_costs.tag_pipeline_rulesets
WHERE ruleset_id = '{{ ruleset_id }}' -- required
;

INSERT examples

Create a new tag pipeline ruleset with the specified rules and configuration

INSERT INTO datadog.cloud_costs.tag_pipeline_rulesets (
data
)
SELECT
'{{ data }}'
RETURNING
data
;

UPDATE examples

Update a tag pipeline ruleset - Update an existing tag pipeline ruleset with new rules and configuration

UPDATE datadog.cloud_costs.tag_pipeline_rulesets
SET
data = '{{ data }}'
WHERE
ruleset_id = '{{ ruleset_id }}' --required
RETURNING
data;

DELETE examples

Delete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID

DELETE FROM datadog.cloud_costs.tag_pipeline_rulesets
WHERE ruleset_id = '{{ ruleset_id }}' --required
;

Lifecycle Methods

EXEC variables use wire (API) names.

Reorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets

EXEC datadog.cloud_costs.tag_pipeline_rulesets.reorder_tag_pipelines_rulesets
@@json=
'{
"data": "{{ data }}"
}'
;