Sha256: 1c6e3930180a2a1c3314129cc0318c04286d4ef655da351110cbef538612bb9e

Contents?: true

Size: 937 Bytes

Versions: 16

Compression:

Stored size: 937 Bytes

Contents

# Add Confluent account returns "OK" response

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

body = DatadogAPIClient::V2::ConfluentAccountCreateRequest.new({
  data: DatadogAPIClient::V2::ConfluentAccountCreateRequestData.new({
    attributes: DatadogAPIClient::V2::ConfluentAccountCreateRequestAttributes.new({
      api_key: "TESTAPIKEY123",
      api_secret: "test-api-secret-123",
      resources: [
        DatadogAPIClient::V2::ConfluentAccountResourceAttributes.new({
          enable_custom_metrics: false,
          id: "resource-id-123",
          resource_type: "kafka",
          tags: [
            "myTag",
            "myTag2:myValue",
          ],
        }),
      ],
      tags: [
        "myTag",
        "myTag2:myValue",
      ],
    }),
    type: DatadogAPIClient::V2::ConfluentAccountType::CONFLUENT_CLOUD_ACCOUNTS,
  }),
})
p api_instance.create_confluent_account(body)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.27.1 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.26.1 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.26.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.25.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.24.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.22.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.21.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.20.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.19.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.18.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.17.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.16.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.15.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.14.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb
datadog_api_client-2.13.0 examples/v2/confluent-cloud/CreateConfluentAccount.rb