Sha256: ffa6e12692a56952d9b294a04ec5902d89e9283462bd8f979c01dbf16c70ed89

Contents?: true

Size: 879 Bytes

Versions: 26

Compression:

Stored size: 879 Bytes

Contents

# Update Confluent account returns "OK" response

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

# there is a valid "confluent_account" in the system
CONFLUENT_ACCOUNT_DATA_ATTRIBUTES_API_KEY = ENV["CONFLUENT_ACCOUNT_DATA_ATTRIBUTES_API_KEY"]
CONFLUENT_ACCOUNT_DATA_ID = ENV["CONFLUENT_ACCOUNT_DATA_ID"]

body = DatadogAPIClient::V2::ConfluentAccountUpdateRequest.new({
  data: DatadogAPIClient::V2::ConfluentAccountUpdateRequestData.new({
    attributes: DatadogAPIClient::V2::ConfluentAccountUpdateRequestAttributes.new({
      api_key: CONFLUENT_ACCOUNT_DATA_ATTRIBUTES_API_KEY,
      api_secret: "update-secret",
      tags: [
        "updated_tag:val",
      ],
    }),
    type: DatadogAPIClient::V2::ConfluentAccountType::CONFLUENT_CLOUD_ACCOUNTS,
  }),
})
p api_instance.update_confluent_account(CONFLUENT_ACCOUNT_DATA_ID, body)

Version data entries

26 entries across 26 versions & 1 rubygems

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