Sha256: 5ddc7d75fe6dc78b24ef9ca3991e013da8e894cdd7ce7daedbab24084e8910b8

Contents?: true

Size: 972 Bytes

Versions: 5

Compression:

Stored size: 972 Bytes

Contents

# Update an Azure integration returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new

body = DatadogAPIClient::V1::AzureAccount.new({
  app_service_plan_filters: "key:value,filter:example",
  automute: true,
  client_id: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  client_secret: "TestingRh2nx664kUy5dIApvM54T4AtO",
  container_app_filters: "key:value,filter:example",
  cspm_enabled: true,
  custom_metrics_enabled: true,
  errors: [
    "*",
  ],
  host_filters: "key:value,filter:example",
  new_client_id: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  new_tenant_name: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  resource_collection_enabled: true,
  metrics_config: DatadogAPIClient::V1::AzureAccountMetricsConfig.new({
    excluded_resource_providers: [
      "Microsoft.Sql",
      "Microsoft.Cdn",
    ],
  }),
  tenant_name: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
})
p api_instance.update_azure_integration(body)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v1/azure-integration/UpdateAzureIntegration.rb
datadog_api_client-2.27.1 examples/v1/azure-integration/UpdateAzureIntegration.rb
datadog_api_client-2.26.1 examples/v1/azure-integration/UpdateAzureIntegration.rb
datadog_api_client-2.26.0 examples/v1/azure-integration/UpdateAzureIntegration.rb
datadog_api_client-2.25.0 examples/v1/azure-integration/UpdateAzureIntegration.rb