account_filters
Creates, updates, deletes, gets or lists an account_filters resource.
Overview
| Name | account_filters |
| Type | Resource |
| Id | datadog.cloud_costs.account_filters |
Fields
The following fields are returned by SELECT queries:
- get_cost_account_filters
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the cloud account. (example: 123456789123) |
attributes | object | Attributes for the account filters of a cloud account. |
type | string | Type of account filters. (account_filters) (default: account_filters, example: account_filters) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_cost_account_filters | select | cloud_account_id | Get the account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds). | |
update_cost_account_filters | update | cloud_account_id, data | Update 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.
| Name | Datatype | Description |
|---|---|---|
cloud_account_id | integer (int64) | Cloud Account id. |
site | string | The 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_cost_account_filters
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_cost_account_filters
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;