Sha256: 0fdf37b95c71c06bd117d2abfa0047c12b915ea5301f363dec3e41aa32adb70a

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

# Create Cloud Cost Management Azure configs returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new

body = DatadogAPIClient::V2::AzureUCConfigPostRequest.new({
  data: DatadogAPIClient::V2::AzureUCConfigPostData.new({
    attributes: DatadogAPIClient::V2::AzureUCConfigPostRequestAttributes.new({
      account_id: "1234abcd-1234-abcd-1234-1234abcd1234",
      actual_bill_config: DatadogAPIClient::V2::BillConfig.new({
        export_name: "dd-actual-export",
        export_path: "dd-export-path",
        storage_account: "dd-storage-account",
        storage_container: "dd-storage-container",
      }),
      amortized_bill_config: DatadogAPIClient::V2::BillConfig.new({
        export_name: "dd-actual-export",
        export_path: "dd-export-path",
        storage_account: "dd-storage-account",
        storage_container: "dd-storage-container",
      }),
      client_id: "1234abcd-1234-abcd-1234-1234abcd1234",
      is_enabled: true,
      scope: "subscriptions/1234abcd-1234-abcd-1234-1234abcd1234",
    }),
    type: DatadogAPIClient::V2::AzureUCConfigPostRequestType::AZURE_UC_CONFIG_POST_REQUEST,
  }),
})
p api_instance.create_cost_azure_uc_configs(body)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.27.1 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.26.1 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.26.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.25.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.24.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.22.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.21.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.20.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb
datadog_api_client-2.19.0 examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb