Skip to content
Cloudflare Docs

API and Terraform

This section covers a few common use cases with the API and Terraform to manage Cloudflare One. For more information, refer to our API documentation and Terraform reference guide.

Set dashboard to read-only

Super Administrators can lock all settings as read-only in Cloudflare One. Read-only mode ensures that all updates for the account are made through the API or Terraform.

To enable read-only mode:

  1. In Cloudflare One, go to Settings > Admin controls.
  2. Enable Set dashboard to read-only.

All users, regardless of user permissions, will be prevented from making configuration changes through the UI.

Scoped API tokens

The administrators managing policies and groups in Cloudflare One might be different from those responsible for configuring WAF custom rules or other Cloudflare settings. You can configure scoped API tokens so that team members and automated systems can manage Cloudflare One settings without having permission to modify other configurations in Cloudflare.

You can create a scoped API token via the dashboard or via the API. For a list of available token permissions, refer to API token permissions.