# Cloudflare

Firefly integrates with Cloudflare to ingest DNS and CDN configurations, allowing you to view and manage your Cloudflare resources as part of your unified Firefly Inventory. This enables you to apply governance, enforce policies, and gain visibility into your Cloudflare assets alongside other cloud and infrastructure resources.

## Prerequisites

* A Cloudflare account with administrative access.
* Ability to generate API tokens.
* Access to Cloudflare API endpoints.
* API token with read permissions to your zones.

## Setup Procedure

1. Log in to your Cloudflare account.
2. Create an API token:
   * Visit [Cloudflare API Token Creation](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
   * Select the "Read all resources" template.
   * Copy the token.
3. In Firefly:
   * Click **Settings > Integrations**.
   * Click **Add New > Cloudflare**.
   * Enter a descriptive name in the Nickname field.
   * Paste the token into the API Token field.
   * Click **Next**.
   * Click **Done**.

## Configuration Details

* Firefly scans every 8 hours by default for SaaS data.
* Your Cloudflare configurations list will stay updated automatically.
* You can enforce IaC or policies on your Cloudflare assets.
* Supports monitoring of Cloudflare DNS, CDN configurations and more.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.firefly.ai/integrations/data-sources/cloudflare.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
