Skip to main content

tag_metadatum_months

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

Overview

Nametag_metadatum_months
TypeResource
Iddatadog.cloud_costs.tag_metadatum_months

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe month, in YYYY-MM format. (example: 2026-04)
typestringType of the Cloud Cost Management tag metadata month resource. (cost_tag_metadata_month) (default: cost_tag_metadata_month, example: cost_tag_metadata_month)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_cost_tag_metadata_monthsselectfilter[provider]List months that have Cloud Cost Management tag metadata for a given provider,<br />ordered most-recent first. The response is capped at 36 months.

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
filter[provider]stringProvider to scope the query to. Use the value of the providername tag in CCM (for example, aws, azure, gcp, Oracle, Confluent Cloud, Snowflake). For costs uploaded through the Custom Costs API, use custom. Values are case-sensitive. (example: aws)
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

List months that have Cloud Cost Management tag metadata for a given provider,<br />ordered most-recent first. The response is capped at 36 months.

SELECT
id,
type
FROM datadog.cloud_costs.tag_metadatum_months
WHERE filter[provider] = '{{ filter[provider] }}' -- required
;