Skip to main content

account_filters

Creates, updates, deletes, gets or lists an account_filters resource.

Overview

Nameaccount_filters
TypeResource
Iddatadog.cloud_costs.account_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the cloud account. (example: 123456789123)
attributesobjectAttributes for the account filters of a cloud account.
typestringType of account filters. (account_filters) (default: account_filters, example: account_filters)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cost_account_filtersselectcloud_account_idGet the account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds).
update_cost_account_filtersupdatecloud_account_id, dataUpdate the account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds).

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
cloud_account_idinteger (int64)Cloud Account id.
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 account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds).

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

UPDATE examples

Update the account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds).

UPDATE datadog.cloud_costs.account_filters
SET
data = '{{ data }}'
WHERE
cloud_account_id = '{{ cloud_account_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;