Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aegis option to zone settings #4820

Merged
merged 5 commits into from
Jan 3, 2025

Conversation

zaidoon1
Copy link
Contributor

@zaidoon1 zaidoon1 commented Dec 30, 2024

Aegis setting

Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.

The api endpoint and expected input/output can be seen below:

Get Aegis setting value

curl --request GET \
 --url https://api.cloudflare.com/client/v4/zones/zone_id/settings/aegis \
 --header 'Content-Type: application/json' \
 --header 'X-Auth-Email: xxx'
{
  "result": {
    "editable": true,
    "id": "aegis",
    "modified_on": "2024-12-20T19:18:58.145335Z",
    "value": {
      "enabled": true,
      "pool_id": "some-pool-id-you-own"
    }
  },
  "success": true,
  "errors": [],
  "messages": []
}

Change aegis setting value

curl --request PATCH \
 --url https://api.cloudflare.com/client/v4/zones/zone_id/settings/aegis \
 --header 'Content-Type: application/json' \
 --header 'X-Auth-Email: xxx' \
 --data '{
 "value": {
   "pool_id": "some-pool-id-you-own"
 }
}'
{
  "result": {
    "editable": true,
    "id": "aegis",
    "modified_on": "2024-12-20T19:18:58.145335Z",
    "value": {
      "pool_id": "some-pool-id-you-own"
    }
  },
  "success": true,
  "errors": [],
  "messages": []
}

Disable Aegis setting

curl --request PATCH \
 --url https://api.cloudflare.com/client/v4/zones/zone_id/settings/aegis \
 --header 'Content-Type: application/json' \
 --header 'X-Auth-Email: xxx' \
 --data '{
 "value": {
   "enabled": false
 }
}'
{
  "result": {
    "editable": true,
    "id": "aegis",
    "modified_on": "2024-12-20T19:18:58.145335Z",
    "value": {
      "enabled": false
    }
  },
  "success": true,
  "errors": [],
  "messages": []
}

see for history: #4816 (had lots of merge conflicts/issues so was auto closed and opened a new pr to make it simpler)

Copy link
Contributor

changelog detected ✅

@zaidoon1 zaidoon1 changed the title Add aegis option to zone settings [DNM]Add aegis option to zone settings Dec 30, 2024
@zaidoon1 zaidoon1 changed the title [DNM]Add aegis option to zone settings Add aegis option to zone settings Jan 2, 2025
@jacobbednarz jacobbednarz merged commit 6a42f26 into cloudflare:master Jan 3, 2025
7 checks passed
@github-actions github-actions bot added this to the v4.50.0 milestone Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants