Sha256: bc530d1a270e2539fb3223dc55fa19f8fee8f9a238b48468d0fe044b47310a01

Contents?: true

Size: 689 Bytes

Versions: 17

Compression:

Stored size: 689 Bytes

Contents

# Update resource in Confluent account returns "OK" response

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

body = DatadogAPIClient::V2::ConfluentResourceRequest.new({
  data: DatadogAPIClient::V2::ConfluentResourceRequestData.new({
    attributes: DatadogAPIClient::V2::ConfluentResourceRequestAttributes.new({
      enable_custom_metrics: false,
      resource_type: "kafka",
      tags: [
        "myTag",
        "myTag2:myValue",
      ],
    }),
    id: "resource-id-123",
    type: DatadogAPIClient::V2::ConfluentResourceType::CONFLUENT_CLOUD_RESOURCES,
  }),
})
p api_instance.update_confluent_resource("account_id", "resource_id", body)

Version data entries

17 entries across 17 versions & 1 rubygems

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