azure_configs
Creates, updates, deletes, gets or lists an azure_configs resource.
Overview
| Name | azure_configs |
| Type | Resource |
| Id | datadog.cloud_costs.azure_configs |
Fields
The following fields are returned by SELECT queries:
- list_cost_azure_ucconfigs
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of Cloud Cost Management account. |
attributes | object | Attributes for Azure config pair. |
type | string | Type of Azure config pair. (azure_uc_configs) (default: azure_uc_configs, example: azure_uc_configs) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_cost_azure_ucconfigs | select | List the Azure configs. | ||
create_cost_azure_ucconfigs | insert | data | Create a Cloud Cost Management account for an Azure config. | |
update_cost_azure_ucconfigs | update | cloud_account_id, data | Update the status of an Azure config (active/archived). | |
delete_cost_azure_ucconfig | delete | cloud_account_id | Archive a Cloud Cost Management Account. |
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
- list_cost_azure_ucconfigs
List the Azure configs.
SELECT
id,
attributes,
type
FROM datadog.cloud_costs.azure_configs
;
INSERT examples
- create_cost_azure_ucconfigs
- Manifest
Create a Cloud Cost Management account for an Azure config.
INSERT INTO datadog.cloud_costs.azure_configs (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: azure_configs
props:
- name: data
description: |
Azure config Post data.
value:
attributes:
account_id: "{{ account_id }}"
actual_bill_config:
export_name: "{{ export_name }}"
export_path: "{{ export_path }}"
storage_account: "{{ storage_account }}"
storage_container: "{{ storage_container }}"
amortized_bill_config:
export_name: "{{ export_name }}"
export_path: "{{ export_path }}"
storage_account: "{{ storage_account }}"
storage_container: "{{ storage_container }}"
client_id: "{{ client_id }}"
scope: "{{ scope }}"
type: "{{ type }}"
UPDATE examples
- update_cost_azure_ucconfigs
Update the status of an Azure config (active/archived).
UPDATE datadog.cloud_costs.azure_configs
SET
data = '{{ data }}'
WHERE
cloud_account_id = '{{ cloud_account_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_cost_azure_ucconfig
Archive a Cloud Cost Management Account.
DELETE FROM datadog.cloud_costs.azure_configs
WHERE cloud_account_id = '{{ cloud_account_id }}' --required
;