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