Sha256: 4e401444b049f7251cf2d184738fac7ba053186f0cacb33e578788a473e678a0

Contents?: true

Size: 806 Bytes

Versions: 5

Compression:

Stored size: 806 Bytes

Contents

# Create 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: "testingx./Sw*g/Y33t..R1cH+hScMDt",
  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,
  tenant_name: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
})
p api_instance.create_azure_integration(body)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog_api_client-2.24.0 examples/v1/azure-integration/CreateAzureIntegration.rb
datadog_api_client-2.22.0 examples/v1/azure-integration/CreateAzureIntegration.rb
datadog_api_client-2.21.0 examples/v1/azure-integration/CreateAzureIntegration.rb
datadog_api_client-2.20.0 examples/v1/azure-integration/CreateAzureIntegration.rb
datadog_api_client-2.19.0 examples/v1/azure-integration/CreateAzureIntegration.rb