Sha256: 21491897051e300be27ffc1813483e19ad618196e33096d94969bf5052157822
Contents?: true
Size: 740 Bytes
Versions: 3
Compression:
Stored size: 740 Bytes
Contents
# Update Cloudflare account returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::CloudflareIntegrationAPI.new # there is a valid "cloudflare_account" in the system CLOUDFLARE_ACCOUNT_DATA_ID = ENV["CLOUDFLARE_ACCOUNT_DATA_ID"] body = DatadogAPIClient::V2::CloudflareAccountUpdateRequest.new({ data: DatadogAPIClient::V2::CloudflareAccountUpdateRequestData.new({ attributes: DatadogAPIClient::V2::CloudflareAccountUpdateRequestAttributes.new({ api_key: "6Zm7WEgKzAlCnt_4exfEK0mSoeHHAaDf41O1AAfu", email: "new@email", }), type: DatadogAPIClient::V2::CloudflareAccountType::CLOUDFLARE_ACCOUNTS, }), }) p api_instance.update_cloudflare_account(CLOUDFLARE_ACCOUNT_DATA_ID, body)
Version data entries
3 entries across 3 versions & 1 rubygems