Sha256: 13eab2812b71fc87f5256c60c6fb09343ee41a684462078699577f81c26fede5

Contents?: true

Size: 714 Bytes

Versions: 3

Compression:

Stored size: 714 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: "testc7f6-1234-5678-9101-3fcbf464test",
  client_secret: "testingx./Sw*g/Y33t..R1cH+hScMDt",
  cspm_enabled: true,
  custom_metrics_enabled: true,
  errors: [
    "*",
  ],
  host_filters: "key:value,filter:example",
  new_client_id: "new1c7f6-1234-5678-9101-3fcbf464test",
  new_tenant_name: "new1c44-1234-5678-9101-cc00736ftest",
  tenant_name: "testc44-1234-5678-9101-cc00736ftest",
})
p api_instance.create_azure_integration(body)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datadog_api_client-2.16.0 examples/v1/azure-integration/CreateAzureIntegration.rb
datadog_api_client-2.15.0 examples/v1/azure-integration/CreateAzureIntegration.rb
datadog_api_client-2.14.0 examples/v1/azure-integration/CreateAzureIntegration.rb