Get started (25)

Last updated Jul 1, 2026 You can configure the Customer Metadata Boundary to select the region where your logs and analytics are stored. This setting controls where Cloudflare stores traffic metadata that could identify your end users. You can configure it via API or the dashboard.

Currently, this can only be applied at the account-level. If you only want the Metadata Boundary to be applied on a portion of zones beneath the same account, you will have to move the rest of zones to a new account.

Configure Customer Metadata Boundary in the dashboard

To configure Customer Metadata Boundary in the dashboard:

  1. In the Cloudflare dashboard, go to the Settings page. Go to Configurations ↗
  2. In Customer Metadata Boundary, select the region you want to use: eu or us. Selecting Global applies no metadata boundary — the default — meaning Customer Logs may be stored in Cloudflare's core data centers globally.

Configure Customer Metadata Boundary via API

You can also configure Customer Metadata Boundary via API.

Currently, only SuperAdmins and Admin roles can edit DLS configurations. Use the Account-level Logs:Read/Write API permissions for the /logs/control/cmb endpoint to read/write Customer Metadata Boundary configurations.

These are some examples of API requests.

<details>

<summary>

Get current regions

</summary>

Here is an example request using cURL to get current regions (if any):

<details>

<summary>

Required API token permissions

</summary>

At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:

  • <code>Logs Write</code>
  • <code>Logs Read</code>

</details>

Get CMB configbash

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/logs/control/cmb/config" \
    --request GET \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

</details>

<details>

<summary>

Setting regions

</summary>

Here is an example request using cURL to set regions:

<details>

<summary>

Required API token permissions

</summary>

At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:

  • <code>Logs Write</code>

</details>

Update CMB configbash

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/logs/control/cmb/config" \
    --request POST \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    --json '{
        "regions": "eu",
        "allow_out_of_region_access": false
    }'

This will overwrite any previous regions. Change will be in effect after several minutes.

</details>

<details>

<summary>

Delete regions

</summary>

Here is an example request using cURL to delete regions:

<details>

<summary>

Required API token permissions

</summary>

At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:

  • <code>Logs Write</code>

</details>

Delete CMB configbash

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/logs/control/cmb/config" \
    --request DELETE \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

</details>

View or change settings

To view or change your Customer Metadata Boundary setting:

  1. In the Cloudflare dashboard, go to the Settings page. Go to Configurations ↗
  2. Go to Preferences.
  3. Locate the Customer Metadata Boundary section.

Was this helpful?

YesNo

On this page

Get started (25) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/data-localization/metadata-boundary/get-started/#page","headline":"Get started","description":"Configure Customer Metadata Boundary to select the region for your logs and analytics.","url":"https://developers.cloudflare.com/data-localization/metadata-boundary/get-started/","inLanguage":"en","image":"https://developers.cloudflare.com/data-localization/metadata-boundary/get-started/og.png?v=3b95349e97851f3e","dateModified":"2026-07-01","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["Privacy"]}


description: GraphQL Analytics API fields that respect Customer Metadata Boundary configuration. title: GraphQL datasets image: https://developers.cloudflare.com/data-localization/metadata-boundary/graphql-datasets/og.png?v=22b520d0a37987ec


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/data-localization/llms.txt
Use this file to discover all available pages before exploring further.