Skip to content

Commit fc1c802

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): Add new Aegis zone setting (#2287)
1 parent a7c30c4 commit fc1c802

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Methods:
311311
Types:
312312

313313
- <code><a href="./src/resources/zones/settings.ts">AdvancedDDoS</a></code>
314+
- <code><a href="./src/resources/zones/settings.ts">Aegis</a></code>
314315
- <code><a href="./src/resources/zones/settings.ts">AlwaysOnline</a></code>
315316
- <code><a href="./src/resources/zones/settings.ts">AlwaysUseHTTPS</a></code>
316317
- <code><a href="./src/resources/zones/settings.ts">AutomaticHTTPSRewrites</a></code>

src/resources/zones/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export { RatePlans, type RatePlanGetResponse, type RatePlanGetParams } from './r
3131
export {
3232
Settings,
3333
type AdvancedDDoS,
34+
type Aegis,
3435
type AlwaysOnline,
3536
type AlwaysUseHTTPS,
3637
type AutomaticHTTPSRewrites,

src/resources/zones/settings.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,47 @@ export interface AdvancedDDoSParam {
8383
value: 'on' | 'off';
8484
}
8585

86+
/**
87+
* Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your
88+
* layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your
89+
* account so that you can increase your origin security by only allowing traffic
90+
* from a small list of IP addresses.
91+
*/
92+
export interface Aegis {
93+
/**
94+
* ID of the zone setting.
95+
*/
96+
id: 'aegis';
97+
98+
/**
99+
* Last time this setting was modified.
100+
*/
101+
modified_on?: string | null;
102+
103+
/**
104+
* Value of the zone setting.
105+
*/
106+
value?: Aegis.Value;
107+
}
108+
109+
export namespace Aegis {
110+
/**
111+
* Value of the zone setting.
112+
*/
113+
export interface Value {
114+
/**
115+
* Whether the feature is enabled or not.
116+
*/
117+
enabled?: boolean;
118+
119+
/**
120+
* Egress pool id which refers to a grouping of dedicated egress IPs through which
121+
* Cloudflare will connect to origin.
122+
*/
123+
pool_id?: string;
124+
}
125+
}
126+
86127
/**
87128
* When enabled, Cloudflare serves limited copies of web pages available from the
88129
* [Internet Archive's Wayback Machine](https://archive.org/web/) if your server is
@@ -4764,6 +4805,7 @@ export interface SettingGetParams {
47644805
export declare namespace Settings {
47654806
export {
47664807
type AdvancedDDoS as AdvancedDDoS,
4808+
type Aegis as Aegis,
47674809
type AlwaysOnline as AlwaysOnline,
47684810
type AlwaysUseHTTPS as AlwaysUseHTTPS,
47694811
type AutomaticHTTPSRewrites as AutomaticHTTPSRewrites,

src/resources/zones/zones.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { RatePlanGetParams, RatePlanGetResponse, RatePlans } from './rate-plans'
3232
import * as SettingsAPI from './settings';
3333
import {
3434
AdvancedDDoS,
35+
Aegis,
3536
AlwaysOnline,
3637
AlwaysUseHTTPS,
3738
AutomaticHTTPSRewrites,
@@ -500,6 +501,7 @@ export declare namespace Zones {
500501
export {
501502
Settings as Settings,
502503
type AdvancedDDoS as AdvancedDDoS,
504+
type Aegis as Aegis,
503505
type AlwaysOnline as AlwaysOnline,
504506
type AlwaysUseHTTPS as AlwaysUseHTTPS,
505507
type AutomaticHTTPSRewrites as AutomaticHTTPSRewrites,

0 commit comments

Comments
 (0)