INTEGRITY Cloudflare Docs

Setup

You can use the Edit Zone Settings API endpoint to set up Dedicated CDN Egress IPs (formerly known as Aegis). If you are not familiar with how Cloudflare API works, refer to Fundamentals.

Requirements

Turn on DCEI for a zone

  1. Contact your account team to get the ID for your dedicated egress pool.
  2. Make a PATCH request to the Edit Zone Setting endpoint:

Required API token permissions

At least one of the following token permissions is required:
Edit zone setting
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/aegis" \
	--request PATCH \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
	--json '{
		"id": "aegis",
		"value": {
				"enabled": true,
				"pool_id": "<EGRESS_POOL_ID>"
		}
	}'

Check DCEI status for a zone

Required API token permissions

At least one of the following token permissions is required:
Get zone setting
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/aegis" \
	--request GET \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

Turn off DCEI for a zone

Required API token permissions

At least one of the following token permissions is required:
Edit zone setting
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/aegis" \
	--request PATCH \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
	--json '{
		"id": "aegis",
		"value": {
				"enabled": false
		}
	}'

Check your IPs

You can find your leased dedicated IPs for CDN egress on the dashboard under Address space > Leased IPs.

If you are using BYOIP, refer to BYOIP prefixes instead.