Skip to main content

gcp_uc_configs

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

Overview

Namegcp_uc_configs
TypeResource
Iddatadog.cloud_costs.gcp_uc_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe GcpUcConfigResponseData id.
attributesobjectThe definition of GcpUcConfigResponseDataAttributes object.
typestringGoogle Cloud Usage Cost config resource type. (gcp_uc_config) (default: gcp_uc_config, example: gcp_uc_config)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cost_gcpusage_cost_configselectcloud_account_idGet a specific Google Cloud Usage Cost config.

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)The unique identifier of the cloud account
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 Google Cloud Usage Cost config.

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