Sha256: 098e151dadc8259f0c132e64d5bcf4b41c6cc231c3e1cc7ecddae69eb823aeeb

Contents?: true

Size: 615 Bytes

Versions: 10

Compression:

Stored size: 615 Bytes

Contents

# Add Cloudflare account returns "CREATED" response

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

body = DatadogAPIClient::V2::CloudflareAccountCreateRequest.new({
  data: DatadogAPIClient::V2::CloudflareAccountCreateRequestData.new({
    attributes: DatadogAPIClient::V2::CloudflareAccountCreateRequestAttributes.new({
      api_key: "fakekey",
      email: "dev@datadoghq.com",
      name: "examplecloudflareintegration",
    }),
    type: DatadogAPIClient::V2::CloudflareAccountType::CLOUDFLARE_ACCOUNTS,
  }),
})
p api_instance.create_cloudflare_account(body)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.27.1 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.26.1 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.26.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.25.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.24.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.22.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.21.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.20.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb
datadog_api_client-2.19.0 examples/v2/cloudflare-integration/CreateCloudflareAccount.rb