@scaleway/sdk-edge-services 2.24.0 → 2.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +2 -5
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1beta1/api.gen.d.ts +441 -439
- package/dist/v1beta1/api.gen.js +5 -3
- package/dist/v1beta1/constants.gen.d.ts +3 -1
- package/dist/v1beta1/constants.gen.js +2 -1
- package/dist/v1beta1/content.gen.d.ts +3 -1
- package/dist/v1beta1/content.gen.js +2 -1
- package/dist/v1beta1/index.gen.d.ts +11 -6
- package/dist/v1beta1/index.gen.js +3 -1
- package/dist/v1beta1/marshalling.gen.d.ts +4 -2
- package/dist/v1beta1/marshalling.gen.js +6 -3
- package/dist/v1beta1/metadata.gen.d.ts +323 -321
- package/dist/v1beta1/metadata.gen.js +2 -1
- package/dist/v1beta1/types.gen.d.ts +1489 -1484
- package/dist/v1beta1/validation-rules.gen.d.ts +27 -22
- package/dist/v1beta1/validation-rules.gen.js +3 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1beta1/types.gen.js +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Money, Region, Zone } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1beta1/types.gen.d.ts
|
|
2
3
|
export type DNSStageType = 'unknown_type' | 'auto' | 'managed' | 'custom';
|
|
3
4
|
export type LbOriginError = 'unknown' | 'timeout' | 'connection_refused' | 'tls_error';
|
|
4
5
|
export type ListBackendStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
@@ -27,1715 +28,1719 @@ export type SearchWafStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc'
|
|
|
27
28
|
export type StageStatus = 'unknown_status' | 'inactive' | 'active';
|
|
28
29
|
export type WafStageMode = 'unknown_mode' | 'disable' | 'log_only' | 'enable';
|
|
29
30
|
export interface ScalewayLb {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
/**
|
|
32
|
+
* ID of the Load Balancer.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Zone of the Load Balancer.
|
|
37
|
+
*/
|
|
38
|
+
zone: Zone;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the frontend linked to the Load Balancer.
|
|
41
|
+
*/
|
|
42
|
+
frontendId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Defines whether the Load Balancer's frontend handles SSL connections.
|
|
45
|
+
*/
|
|
46
|
+
isSsl?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer.
|
|
49
|
+
*/
|
|
50
|
+
domainName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Defines whether to forward websocket requests to the load balancer.
|
|
53
|
+
*/
|
|
54
|
+
hasWebsocket?: boolean;
|
|
55
|
+
privateNetworkId?: string;
|
|
55
56
|
}
|
|
56
57
|
export interface RuleHttpMatchHostFilter {
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
hostFilterType: RuleHttpMatchHostFilterHostFilterType;
|
|
59
|
+
value: string;
|
|
59
60
|
}
|
|
60
61
|
export interface RuleHttpMatchPathFilter {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
/**
|
|
63
|
+
* Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type.
|
|
64
|
+
*/
|
|
65
|
+
pathFilterType: RuleHttpMatchPathFilterPathFilterType;
|
|
66
|
+
/**
|
|
67
|
+
* Value to be matched for the HTTP URL path.
|
|
68
|
+
*/
|
|
69
|
+
value: string;
|
|
69
70
|
}
|
|
70
71
|
export interface ScalewayLbBackendConfig {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Load Balancer information.
|
|
74
|
+
*/
|
|
75
|
+
lbs: ScalewayLb[];
|
|
75
76
|
}
|
|
76
77
|
export interface ScalewayS3BackendConfig {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Name of the Bucket.
|
|
80
|
+
*/
|
|
81
|
+
bucketName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Region of the Bucket.
|
|
84
|
+
*/
|
|
85
|
+
bucketRegion?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Defines whether the bucket website feature is enabled.
|
|
88
|
+
*/
|
|
89
|
+
isWebsite?: boolean;
|
|
89
90
|
}
|
|
90
91
|
export interface ScalewayServerlessContainerBackendConfig {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Region to target. If none is passed will use default region from the config.
|
|
94
|
+
*/
|
|
95
|
+
region: Region;
|
|
96
|
+
containerId: string;
|
|
96
97
|
}
|
|
97
98
|
export interface ScalewayServerlessFunctionBackendConfig {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Region to target. If none is passed will use default region from the config.
|
|
101
|
+
*/
|
|
102
|
+
region: Region;
|
|
103
|
+
functionId: string;
|
|
103
104
|
}
|
|
104
105
|
export interface PipelineError {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
stage: PipelineErrorStage;
|
|
107
|
+
code: PipelineErrorCode;
|
|
108
|
+
severity: PipelineErrorSeverity;
|
|
109
|
+
message: string;
|
|
110
|
+
type: PipelineErrorType;
|
|
110
111
|
}
|
|
111
112
|
export interface TLSSecret {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
/**
|
|
114
|
+
* ID of the Secret.
|
|
115
|
+
*/
|
|
116
|
+
secretId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Region of the Secret.
|
|
119
|
+
*/
|
|
120
|
+
region: Region;
|
|
120
121
|
}
|
|
121
122
|
export interface WafExclusionRule {
|
|
122
|
-
|
|
123
|
+
ruleId: number;
|
|
123
124
|
}
|
|
124
125
|
export interface RuleHttpMatch {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
126
|
+
/**
|
|
127
|
+
* HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are `get`, `post`, `put`, `patch`, `delete`, `head`, `options`. All methods will match if none is provided.
|
|
128
|
+
*/
|
|
129
|
+
methodFilters: RuleHttpMatchMethodFilter[];
|
|
130
|
+
/**
|
|
131
|
+
* HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided.
|
|
132
|
+
*/
|
|
133
|
+
pathFilter?: RuleHttpMatchPathFilter;
|
|
134
|
+
/**
|
|
135
|
+
* Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided.
|
|
136
|
+
*/
|
|
137
|
+
hostFilter?: RuleHttpMatchHostFilter;
|
|
137
138
|
}
|
|
138
139
|
export interface BackendStage {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
140
|
+
/**
|
|
141
|
+
* ID of the backend stage.
|
|
142
|
+
*/
|
|
143
|
+
id: string;
|
|
144
|
+
/**
|
|
145
|
+
* Pipeline ID the backend stage belongs to.
|
|
146
|
+
*/
|
|
147
|
+
pipelineId: string;
|
|
148
|
+
/**
|
|
149
|
+
* Current status of the stage.
|
|
150
|
+
*/
|
|
151
|
+
status: StageStatus;
|
|
152
|
+
/**
|
|
153
|
+
* Date the backend stage was created.
|
|
154
|
+
*/
|
|
155
|
+
createdAt?: Date;
|
|
156
|
+
/**
|
|
157
|
+
* Date the backend stage was last updated.
|
|
158
|
+
*/
|
|
159
|
+
updatedAt?: Date;
|
|
160
|
+
/**
|
|
161
|
+
* Scaleway Object Storage origin bucket (S3) linked to the backend stage.
|
|
162
|
+
*
|
|
163
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
164
|
+
*/
|
|
165
|
+
scalewayS3?: ScalewayS3BackendConfig;
|
|
166
|
+
/**
|
|
167
|
+
* Scaleway Load Balancer origin linked to the backend stage.
|
|
168
|
+
*
|
|
169
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
170
|
+
*/
|
|
171
|
+
scalewayLb?: ScalewayLbBackendConfig;
|
|
172
|
+
/**
|
|
173
|
+
* Scaleway Serverless container origin linked to the backend stage.
|
|
174
|
+
*
|
|
175
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
176
|
+
*/
|
|
177
|
+
scalewayServerlessContainer?: ScalewayServerlessContainerBackendConfig;
|
|
178
|
+
/**
|
|
179
|
+
* Scaleway Serverless function origin linked to the backend stage.
|
|
180
|
+
*
|
|
181
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
182
|
+
*/
|
|
183
|
+
scalewayServerlessFunction?: ScalewayServerlessFunctionBackendConfig;
|
|
183
184
|
}
|
|
184
185
|
export interface CacheStage {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
186
|
+
/**
|
|
187
|
+
* ID of the cache stage.
|
|
188
|
+
*/
|
|
189
|
+
id: string;
|
|
190
|
+
/**
|
|
191
|
+
* Pipeline ID the cache stage belongs to.
|
|
192
|
+
*/
|
|
193
|
+
pipelineId: string;
|
|
194
|
+
/**
|
|
195
|
+
* Time To Live (TTL) in seconds. Defines how long content is cached.
|
|
196
|
+
*/
|
|
197
|
+
fallbackTtl?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Defines whether responses to requests with cookies must be stored in the cache.
|
|
200
|
+
*/
|
|
201
|
+
includeCookies: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Current status of the stage.
|
|
204
|
+
*/
|
|
205
|
+
status: StageStatus;
|
|
206
|
+
/**
|
|
207
|
+
* Date the cache stage was created.
|
|
208
|
+
*/
|
|
209
|
+
createdAt?: Date;
|
|
210
|
+
/**
|
|
211
|
+
* Date the cache stage was last updated.
|
|
212
|
+
*/
|
|
213
|
+
updatedAt?: Date;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId', 'routeStageId' could be set.
|
|
217
|
+
*/
|
|
218
|
+
wafStageId?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Backend stage ID the cache stage is linked to.
|
|
221
|
+
*
|
|
222
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId', 'routeStageId' could be set.
|
|
223
|
+
*/
|
|
224
|
+
backendStageId?: string;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId', 'routeStageId' could be set.
|
|
228
|
+
*/
|
|
229
|
+
routeStageId?: string;
|
|
229
230
|
}
|
|
230
231
|
export interface DNSStage {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
232
|
+
/**
|
|
233
|
+
* ID of the DNS stage.
|
|
234
|
+
*/
|
|
235
|
+
id: string;
|
|
236
|
+
/**
|
|
237
|
+
* Default Fully Qualified Domain Name provided for the Pipeline.
|
|
238
|
+
*/
|
|
239
|
+
defaultFqdn: string;
|
|
240
|
+
defaultPrivateFqdn: string;
|
|
241
|
+
/**
|
|
242
|
+
* Custom Fully Qualified Domain Names configured (only the first one is valid).
|
|
243
|
+
*/
|
|
244
|
+
fqdns: string[];
|
|
245
|
+
/**
|
|
246
|
+
* Type of the stage.
|
|
247
|
+
*/
|
|
248
|
+
type: DNSStageType;
|
|
249
|
+
/**
|
|
250
|
+
* Pipeline ID the DNS stage belongs to.
|
|
251
|
+
*/
|
|
252
|
+
pipelineId: string;
|
|
253
|
+
/**
|
|
254
|
+
* Current status of the stage.
|
|
255
|
+
*/
|
|
256
|
+
status: StageStatus;
|
|
257
|
+
/**
|
|
258
|
+
* Date the DNS stage was created.
|
|
259
|
+
*/
|
|
260
|
+
createdAt?: Date;
|
|
261
|
+
/**
|
|
262
|
+
* Date the DNS stage was last updated.
|
|
263
|
+
*/
|
|
264
|
+
updatedAt?: Date;
|
|
265
|
+
/**
|
|
266
|
+
* TLS stage ID the DNS stage is linked to.
|
|
267
|
+
*
|
|
268
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
269
|
+
*/
|
|
270
|
+
tlsStageId?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Cache stage ID the DNS stage is linked to.
|
|
273
|
+
*
|
|
274
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
275
|
+
*/
|
|
276
|
+
cacheStageId?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Backend stage ID the DNS stage is linked to.
|
|
279
|
+
*
|
|
280
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
281
|
+
*/
|
|
282
|
+
backendStageId?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).
|
|
285
|
+
*/
|
|
286
|
+
wildcardDomain: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Fully Qualified Domain Names are accessible exclusively within the VPC.
|
|
289
|
+
*/
|
|
290
|
+
fullPrivate: boolean;
|
|
290
291
|
}
|
|
291
292
|
export interface Pipeline {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
293
|
+
/**
|
|
294
|
+
* ID of the pipeline.
|
|
295
|
+
*/
|
|
296
|
+
id: string;
|
|
297
|
+
/**
|
|
298
|
+
* Name of the pipeline.
|
|
299
|
+
*/
|
|
300
|
+
name: string;
|
|
301
|
+
/**
|
|
302
|
+
* Description of the pipeline.
|
|
303
|
+
*/
|
|
304
|
+
description: string;
|
|
305
|
+
/**
|
|
306
|
+
* Status of the pipeline.
|
|
307
|
+
*/
|
|
308
|
+
status: PipelineStatus;
|
|
309
|
+
/**
|
|
310
|
+
* Errors of the pipeline.
|
|
311
|
+
*/
|
|
312
|
+
errors: PipelineError[];
|
|
313
|
+
/**
|
|
314
|
+
* Project ID of the pipeline.
|
|
315
|
+
*/
|
|
316
|
+
projectId: string;
|
|
317
|
+
/**
|
|
318
|
+
* Organization ID of the pipeline.
|
|
319
|
+
*/
|
|
320
|
+
organizationId: string;
|
|
321
|
+
/**
|
|
322
|
+
* Date the pipeline was created.
|
|
323
|
+
*/
|
|
324
|
+
createdAt?: Date;
|
|
325
|
+
/**
|
|
326
|
+
* Date the pipeline was last updated.
|
|
327
|
+
*/
|
|
328
|
+
updatedAt?: Date;
|
|
329
|
+
vpcEndpointIds: string[];
|
|
329
330
|
}
|
|
330
331
|
export interface RouteStage {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
332
|
+
/**
|
|
333
|
+
* ID of the route stage.
|
|
334
|
+
*/
|
|
335
|
+
id: string;
|
|
336
|
+
/**
|
|
337
|
+
* Pipeline ID the route stage belongs to.
|
|
338
|
+
*/
|
|
339
|
+
pipelineId: string;
|
|
340
|
+
/**
|
|
341
|
+
* ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
|
|
342
|
+
*
|
|
343
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
344
|
+
*/
|
|
345
|
+
wafStageId?: string;
|
|
346
|
+
/**
|
|
347
|
+
* ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
|
|
348
|
+
*
|
|
349
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
350
|
+
*/
|
|
351
|
+
backendStageId?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Current status of the stage.
|
|
354
|
+
*/
|
|
355
|
+
status: StageStatus;
|
|
356
|
+
/**
|
|
357
|
+
* Date the route stage was created.
|
|
358
|
+
*/
|
|
359
|
+
createdAt?: Date;
|
|
360
|
+
/**
|
|
361
|
+
* Date the route stage was last updated.
|
|
362
|
+
*/
|
|
363
|
+
updatedAt?: Date;
|
|
363
364
|
}
|
|
364
365
|
export interface TLSStage {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
366
|
+
/**
|
|
367
|
+
* ID of the TLS stage.
|
|
368
|
+
*/
|
|
369
|
+
id: string;
|
|
370
|
+
/**
|
|
371
|
+
* Secret (from Scaleway Secret Manager) containing your custom certificate.
|
|
372
|
+
*/
|
|
373
|
+
secrets: TLSSecret[];
|
|
374
|
+
/**
|
|
375
|
+
* True when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint.
|
|
376
|
+
*/
|
|
377
|
+
managedCertificate: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Pipeline ID the TLS stage belongs to.
|
|
380
|
+
*/
|
|
381
|
+
pipelineId: string;
|
|
382
|
+
/**
|
|
383
|
+
* Expiration date of the certificate.
|
|
384
|
+
*/
|
|
385
|
+
certificateExpiresAt?: Date;
|
|
386
|
+
/**
|
|
387
|
+
* Current status of the stage.
|
|
388
|
+
*/
|
|
389
|
+
status: StageStatus;
|
|
390
|
+
/**
|
|
391
|
+
* Date the TLS stage was created.
|
|
392
|
+
*/
|
|
393
|
+
createdAt?: Date;
|
|
394
|
+
/**
|
|
395
|
+
* Date the TLS stage was last updated.
|
|
396
|
+
*/
|
|
397
|
+
updatedAt?: Date;
|
|
398
|
+
/**
|
|
399
|
+
* Cache stage ID the TLS stage is linked to.
|
|
400
|
+
*
|
|
401
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
402
|
+
*/
|
|
403
|
+
cacheStageId?: string;
|
|
404
|
+
/**
|
|
405
|
+
* Backend stage ID the TLS stage is linked to.
|
|
406
|
+
*
|
|
407
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
408
|
+
*/
|
|
409
|
+
backendStageId?: string;
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
413
|
+
*/
|
|
414
|
+
wafStageId?: string;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
418
|
+
*/
|
|
419
|
+
routeStageId?: string;
|
|
419
420
|
}
|
|
420
421
|
export interface WafStage {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
422
|
+
/**
|
|
423
|
+
* ID of the WAF stage.
|
|
424
|
+
*/
|
|
425
|
+
id: string;
|
|
426
|
+
/**
|
|
427
|
+
* Pipeline ID the WAF stage belongs to.
|
|
428
|
+
*/
|
|
429
|
+
pipelineId: string;
|
|
430
|
+
/**
|
|
431
|
+
* Mode defining WAF behavior (`disable`/`log_only`/`enable`).
|
|
432
|
+
*/
|
|
433
|
+
mode: WafStageMode;
|
|
434
|
+
/**
|
|
435
|
+
* Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
|
|
436
|
+
*/
|
|
437
|
+
paranoiaLevel: number;
|
|
438
|
+
/**
|
|
439
|
+
* Current status of the stage.
|
|
440
|
+
*/
|
|
441
|
+
status: StageStatus;
|
|
442
|
+
/**
|
|
443
|
+
* Date the WAF stage was created.
|
|
444
|
+
*/
|
|
445
|
+
createdAt?: Date;
|
|
446
|
+
/**
|
|
447
|
+
* Date the WAF stage was last updated.
|
|
448
|
+
*/
|
|
449
|
+
updatedAt?: Date;
|
|
450
|
+
/**
|
|
451
|
+
* ID of the backend stage to forward requests to after the WAF stage.
|
|
452
|
+
*
|
|
453
|
+
* One-of ('next'): at most one of 'backendStageId' could be set.
|
|
454
|
+
*/
|
|
455
|
+
backendStageId?: string;
|
|
456
|
+
/**
|
|
457
|
+
* List of OWASP® CRS rule IDs excluded from WAF.
|
|
458
|
+
*/
|
|
459
|
+
exclusionRules: WafExclusionRule[];
|
|
459
460
|
}
|
|
460
461
|
export interface SetRouteRulesRequestRouteRule {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
462
|
+
/**
|
|
463
|
+
* Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` or `waf_stage_id` fields. Requests that do not match will be checked by the next rule's condition.
|
|
464
|
+
*
|
|
465
|
+
* One-of ('match'): at most one of 'ruleHttpMatch' could be set.
|
|
466
|
+
*/
|
|
467
|
+
ruleHttpMatch?: RuleHttpMatch;
|
|
468
|
+
/**
|
|
469
|
+
* ID of the backend stage that requests matching the rule should be forwarded to.
|
|
470
|
+
*
|
|
471
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
472
|
+
*/
|
|
473
|
+
backendStageId?: string;
|
|
474
|
+
/**
|
|
475
|
+
* ID of the WAF stage that requests matching the rule should be forwarded to.
|
|
476
|
+
*
|
|
477
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
478
|
+
*/
|
|
479
|
+
wafStageId?: string;
|
|
479
480
|
}
|
|
480
481
|
export interface RouteRule {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
482
|
+
/**
|
|
483
|
+
* Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` or `waf_stage_id` fields. Requests that do not match will be checked by the next rule's condition.
|
|
484
|
+
*
|
|
485
|
+
* One-of ('match'): at most one of 'ruleHttpMatch' could be set.
|
|
486
|
+
*/
|
|
487
|
+
ruleHttpMatch?: RuleHttpMatch;
|
|
488
|
+
/**
|
|
489
|
+
* ID of the backend stage that requests matching the rule should be forwarded to.
|
|
490
|
+
*
|
|
491
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
492
|
+
*/
|
|
493
|
+
backendStageId?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Position of the rule which determines the order of processing within the route stage.
|
|
496
|
+
*/
|
|
497
|
+
position: number;
|
|
498
|
+
/**
|
|
499
|
+
* Route stage ID the route rule belongs to.
|
|
500
|
+
*/
|
|
501
|
+
routeStageId: string;
|
|
502
|
+
/**
|
|
503
|
+
* ID of the WAF stage that requests matching the rule should be forwarded to.
|
|
504
|
+
*
|
|
505
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
|
|
506
|
+
*/
|
|
507
|
+
wafStageId?: string;
|
|
507
508
|
}
|
|
508
509
|
export interface CheckPEMChainRequestSecretChain {
|
|
509
|
-
|
|
510
|
-
|
|
510
|
+
secretId: string;
|
|
511
|
+
secretRegion: string;
|
|
512
|
+
}
|
|
513
|
+
export interface WafExclusionRules {
|
|
514
|
+
rules: WafExclusionRule[];
|
|
511
515
|
}
|
|
512
516
|
export interface PlanDetails {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
517
|
+
/**
|
|
518
|
+
* Subscription plan name.
|
|
519
|
+
*/
|
|
520
|
+
planName: PlanName;
|
|
521
|
+
/**
|
|
522
|
+
* Amount of egress data from cache included in subscription plan.
|
|
523
|
+
*/
|
|
524
|
+
packageGb: number;
|
|
525
|
+
/**
|
|
526
|
+
* Number of pipelines included in subscription plan.
|
|
527
|
+
*/
|
|
528
|
+
pipelineLimit: number;
|
|
529
|
+
/**
|
|
530
|
+
* Number of WAF requests included in subscription plan.
|
|
531
|
+
*/
|
|
532
|
+
wafRequests: number;
|
|
533
|
+
/**
|
|
534
|
+
* Number of backends per pipeline included in subscription plan.
|
|
535
|
+
*/
|
|
536
|
+
backendLimit: number;
|
|
537
|
+
/**
|
|
538
|
+
* Support of wildcard subdomains for the customized domain.
|
|
539
|
+
*/
|
|
540
|
+
wildcardDomain: boolean;
|
|
537
541
|
}
|
|
538
542
|
export interface PlanUsageDetails {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
+
/**
|
|
544
|
+
* Cost to date (this month) for the corresponding Edge Services subscription plan.
|
|
545
|
+
*/
|
|
546
|
+
planCost?: Money;
|
|
543
547
|
}
|
|
544
548
|
export interface HeadStageResponseHeadStage {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* One-of ('head'): at most one of 'dnsStageId' could be set.
|
|
552
|
+
*/
|
|
553
|
+
dnsStageId?: string;
|
|
550
554
|
}
|
|
551
555
|
export interface ListHeadStagesResponseHeadStage {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* One-of ('head'): at most one of 'dnsStageId' could be set.
|
|
559
|
+
*/
|
|
560
|
+
dnsStageId?: string;
|
|
557
561
|
}
|
|
558
562
|
export interface Node {
|
|
559
|
-
|
|
563
|
+
ip: string;
|
|
560
564
|
}
|
|
561
565
|
export interface PipelineStages {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
pipeline?: Pipeline;
|
|
567
|
+
dnsStages: DNSStage[];
|
|
568
|
+
tlsStages: TLSStage[];
|
|
569
|
+
cacheStages: CacheStage[];
|
|
570
|
+
backendStages: BackendStage[];
|
|
571
|
+
wafStages: WafStage[];
|
|
572
|
+
routeStages: RouteStage[];
|
|
569
573
|
}
|
|
570
574
|
export interface PurgeRequest {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
575
|
+
/**
|
|
576
|
+
* ID of the purge request.
|
|
577
|
+
*/
|
|
578
|
+
id: string;
|
|
579
|
+
/**
|
|
580
|
+
* Pipeline ID the purge request belongs to.
|
|
581
|
+
*/
|
|
582
|
+
pipelineId: string;
|
|
583
|
+
/**
|
|
584
|
+
* Status of the purge request.
|
|
585
|
+
*/
|
|
586
|
+
status: PurgeRequestStatus;
|
|
587
|
+
/**
|
|
588
|
+
* List of asserts to purge.
|
|
589
|
+
*
|
|
590
|
+
* One-of ('target'): at most one of 'assets', 'all' could be set.
|
|
591
|
+
*/
|
|
592
|
+
assets?: string[];
|
|
593
|
+
/**
|
|
594
|
+
* Defines whether to purge all content.
|
|
595
|
+
*
|
|
596
|
+
* One-of ('target'): at most one of 'assets', 'all' could be set.
|
|
597
|
+
*/
|
|
598
|
+
all?: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* Date the purge request was created.
|
|
601
|
+
*/
|
|
602
|
+
createdAt?: Date;
|
|
603
|
+
/**
|
|
604
|
+
* Date the purge request was last updated.
|
|
605
|
+
*/
|
|
606
|
+
updatedAt?: Date;
|
|
603
607
|
}
|
|
604
608
|
export interface VPCEndpoint {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
609
|
+
/**
|
|
610
|
+
* The VPC Endpoint ID.
|
|
611
|
+
*/
|
|
612
|
+
id: string;
|
|
613
|
+
/**
|
|
614
|
+
* Project ID of the VPC Endpoint.
|
|
615
|
+
*/
|
|
616
|
+
projectId: string;
|
|
617
|
+
/**
|
|
618
|
+
* Zone of the VPC Endpoint.
|
|
619
|
+
*/
|
|
620
|
+
region: Region;
|
|
621
|
+
/**
|
|
622
|
+
* Private Network ID of the VPC Endpoint.
|
|
623
|
+
*/
|
|
624
|
+
privateNetworkId: string;
|
|
625
|
+
/**
|
|
626
|
+
* Date the VPC Endpoint was created.
|
|
627
|
+
*/
|
|
628
|
+
createdAt?: Date;
|
|
629
|
+
/**
|
|
630
|
+
* Date the VPC Endpoint was last updated.
|
|
631
|
+
*/
|
|
632
|
+
updatedAt?: Date;
|
|
629
633
|
}
|
|
630
634
|
export interface SetHeadStageRequestAddNewHeadStage {
|
|
631
|
-
|
|
635
|
+
newStageId: string;
|
|
632
636
|
}
|
|
633
637
|
export interface SetHeadStageRequestRemoveHeadStage {
|
|
634
|
-
|
|
638
|
+
removeStageId: string;
|
|
635
639
|
}
|
|
636
640
|
export interface SetHeadStageRequestSwapHeadStage {
|
|
637
|
-
|
|
638
|
-
|
|
641
|
+
newStageId: string;
|
|
642
|
+
currentStageId: string;
|
|
639
643
|
}
|
|
640
644
|
export interface TLSSecretsConfig {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
+
/**
|
|
646
|
+
* Secret information (from Secret Manager).
|
|
647
|
+
*/
|
|
648
|
+
tlsSecrets: TLSSecret[];
|
|
645
649
|
}
|
|
646
650
|
export type AddRouteRulesRequest = {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
651
|
+
/**
|
|
652
|
+
* ID of the route stage to update.
|
|
653
|
+
*/
|
|
654
|
+
routeStageId: string;
|
|
655
|
+
/**
|
|
656
|
+
* List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
|
|
657
|
+
*/
|
|
658
|
+
routeRules?: SetRouteRulesRequestRouteRule[];
|
|
659
|
+
/**
|
|
660
|
+
* Add rules after the given position.
|
|
661
|
+
*
|
|
662
|
+
* One-of ('position'): at most one of 'afterPosition', 'beforePosition' could be set.
|
|
663
|
+
*/
|
|
664
|
+
afterPosition?: number;
|
|
665
|
+
/**
|
|
666
|
+
* Add rules before the given position.
|
|
667
|
+
*
|
|
668
|
+
* One-of ('position'): at most one of 'afterPosition', 'beforePosition' could be set.
|
|
669
|
+
*/
|
|
670
|
+
beforePosition?: number;
|
|
667
671
|
};
|
|
668
672
|
export interface AddRouteRulesResponse {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
+
/**
|
|
674
|
+
* List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
|
|
675
|
+
*/
|
|
676
|
+
routeRules: RouteRule[];
|
|
673
677
|
}
|
|
674
678
|
export type CheckDomainRequest = {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
679
|
+
projectId?: string;
|
|
680
|
+
fqdn: string;
|
|
681
|
+
cname: string;
|
|
678
682
|
};
|
|
679
683
|
export interface CheckDomainResponse {
|
|
680
|
-
|
|
684
|
+
isValid: boolean;
|
|
681
685
|
}
|
|
682
686
|
export type CheckLbOriginRequest = {
|
|
683
|
-
|
|
687
|
+
lb?: ScalewayLb;
|
|
684
688
|
};
|
|
685
689
|
export interface CheckLbOriginResponse {
|
|
686
|
-
|
|
687
|
-
|
|
690
|
+
isValid: boolean;
|
|
691
|
+
errorType: LbOriginError;
|
|
688
692
|
}
|
|
689
693
|
export type CheckPEMChainRequest = {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
694
|
+
projectId?: string;
|
|
695
|
+
fqdn: string;
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* One-of ('chain'): at most one of 'secret', 'raw' could be set.
|
|
699
|
+
*/
|
|
700
|
+
secret?: CheckPEMChainRequestSecretChain;
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* One-of ('chain'): at most one of 'secret', 'raw' could be set.
|
|
704
|
+
*/
|
|
705
|
+
raw?: string;
|
|
702
706
|
};
|
|
703
707
|
export interface CheckPEMChainResponse {
|
|
704
|
-
|
|
708
|
+
isValid: boolean;
|
|
705
709
|
}
|
|
706
710
|
export type CreateBackendStageRequest = {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
711
|
+
/**
|
|
712
|
+
* Pipeline ID the Backend stage belongs to.
|
|
713
|
+
*/
|
|
714
|
+
pipelineId: string;
|
|
715
|
+
/**
|
|
716
|
+
* Scaleway Object Storage origin bucket (S3) linked to the backend stage.
|
|
717
|
+
*
|
|
718
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
719
|
+
*/
|
|
720
|
+
scalewayS3?: ScalewayS3BackendConfig;
|
|
721
|
+
/**
|
|
722
|
+
* Scaleway Load Balancer origin linked to the backend stage.
|
|
723
|
+
*
|
|
724
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
725
|
+
*/
|
|
726
|
+
scalewayLb?: ScalewayLbBackendConfig;
|
|
727
|
+
/**
|
|
728
|
+
* Scaleway Serverless container origin linked to the backend stage.
|
|
729
|
+
*
|
|
730
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
731
|
+
*/
|
|
732
|
+
scalewayServerlessContainer?: ScalewayServerlessContainerBackendConfig;
|
|
733
|
+
/**
|
|
734
|
+
* Scaleway Serverless function origin linked to the backend stage.
|
|
735
|
+
*
|
|
736
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
737
|
+
*/
|
|
738
|
+
scalewayServerlessFunction?: ScalewayServerlessFunctionBackendConfig;
|
|
735
739
|
};
|
|
736
740
|
export type CreateCacheStageRequest = {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
741
|
+
/**
|
|
742
|
+
* Pipeline ID the Cache stage belongs to.
|
|
743
|
+
*/
|
|
744
|
+
pipelineId: string;
|
|
745
|
+
/**
|
|
746
|
+
* Time To Live (TTL) in seconds. Defines how long content is cached.
|
|
747
|
+
*/
|
|
748
|
+
fallbackTtl?: string;
|
|
749
|
+
/**
|
|
750
|
+
* Defines whether responses to requests with cookies must be stored in the cache.
|
|
751
|
+
*/
|
|
752
|
+
includeCookies?: boolean;
|
|
753
|
+
/**
|
|
754
|
+
* Backend stage ID the cache stage will be linked to.
|
|
755
|
+
*
|
|
756
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
757
|
+
*/
|
|
758
|
+
backendStageId?: string;
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
762
|
+
*/
|
|
763
|
+
wafStageId?: string;
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
767
|
+
*/
|
|
768
|
+
routeStageId?: string;
|
|
765
769
|
};
|
|
766
770
|
export type CreateDNSStageRequest = {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
771
|
+
/**
|
|
772
|
+
* Pipeline ID the DNS stage belongs to.
|
|
773
|
+
*/
|
|
774
|
+
pipelineId: string;
|
|
775
|
+
/**
|
|
776
|
+
* Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now).
|
|
777
|
+
*/
|
|
778
|
+
fqdns?: string[];
|
|
779
|
+
/**
|
|
780
|
+
* TLS stage ID the DNS stage will be linked to.
|
|
781
|
+
*
|
|
782
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
783
|
+
*/
|
|
784
|
+
tlsStageId?: string;
|
|
785
|
+
/**
|
|
786
|
+
* Cache stage ID the DNS stage will be linked to.
|
|
787
|
+
*
|
|
788
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
789
|
+
*/
|
|
790
|
+
cacheStageId?: string;
|
|
791
|
+
/**
|
|
792
|
+
* Backend stage ID the DNS stage will be linked to.
|
|
793
|
+
*
|
|
794
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
795
|
+
*/
|
|
796
|
+
backendStageId?: string;
|
|
797
|
+
/**
|
|
798
|
+
* Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).
|
|
799
|
+
*/
|
|
800
|
+
wildcardDomain?: boolean;
|
|
801
|
+
/**
|
|
802
|
+
* When true, Fully Qualified Domain Names are accessible exclusively within the VPC.
|
|
803
|
+
*/
|
|
804
|
+
fullPrivate?: boolean;
|
|
801
805
|
};
|
|
802
806
|
export type CreatePipelineRequest = {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
807
|
+
/**
|
|
808
|
+
* Project ID in which the pipeline will be created.
|
|
809
|
+
*/
|
|
810
|
+
projectId?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Name of the pipeline.
|
|
813
|
+
*/
|
|
814
|
+
name: string;
|
|
815
|
+
/**
|
|
816
|
+
* Description of the pipeline.
|
|
817
|
+
*/
|
|
818
|
+
description: string;
|
|
815
819
|
};
|
|
816
820
|
export type CreatePurgeRequestRequest = {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
821
|
+
/**
|
|
822
|
+
* Pipeline ID in which the purge request will be created.
|
|
823
|
+
*/
|
|
824
|
+
pipelineId: string;
|
|
825
|
+
/**
|
|
826
|
+
* List of asserts to purge.
|
|
827
|
+
*
|
|
828
|
+
* One-of ('target'): at most one of 'assets', 'all' could be set.
|
|
829
|
+
*/
|
|
830
|
+
assets?: string[];
|
|
831
|
+
/**
|
|
832
|
+
* Defines whether to purge all content.
|
|
833
|
+
*
|
|
834
|
+
* One-of ('target'): at most one of 'assets', 'all' could be set.
|
|
835
|
+
*/
|
|
836
|
+
all?: boolean;
|
|
833
837
|
};
|
|
834
838
|
export type CreateRouteStageRequest = {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
839
|
+
/**
|
|
840
|
+
* Pipeline ID the route stage belongs to.
|
|
841
|
+
*/
|
|
842
|
+
pipelineId: string;
|
|
843
|
+
/**
|
|
844
|
+
* ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
|
|
845
|
+
*
|
|
846
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
847
|
+
*/
|
|
848
|
+
wafStageId?: string;
|
|
849
|
+
/**
|
|
850
|
+
* ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
|
|
851
|
+
*
|
|
852
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
853
|
+
*/
|
|
854
|
+
backendStageId?: string;
|
|
851
855
|
};
|
|
852
856
|
export type CreateTLSStageRequest = {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
857
|
+
/**
|
|
858
|
+
* Pipeline ID the TLS stage belongs to.
|
|
859
|
+
*/
|
|
860
|
+
pipelineId: string;
|
|
861
|
+
/**
|
|
862
|
+
* Secret (from Scaleway Secret Manager) containing your custom certificate.
|
|
863
|
+
*/
|
|
864
|
+
secrets?: TLSSecret[];
|
|
865
|
+
/**
|
|
866
|
+
* True when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint.
|
|
867
|
+
*/
|
|
868
|
+
managedCertificate?: boolean;
|
|
869
|
+
/**
|
|
870
|
+
* Cache stage ID the TLS stage will be linked to.
|
|
871
|
+
*
|
|
872
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
873
|
+
*/
|
|
874
|
+
cacheStageId?: string;
|
|
875
|
+
/**
|
|
876
|
+
* Backend stage ID the TLS stage will be linked to.
|
|
877
|
+
*
|
|
878
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
879
|
+
*/
|
|
880
|
+
backendStageId?: string;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
884
|
+
*/
|
|
885
|
+
routeStageId?: string;
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
889
|
+
*/
|
|
890
|
+
wafStageId?: string;
|
|
887
891
|
};
|
|
888
892
|
export type CreateVPCEndpointRequest = {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
893
|
+
/**
|
|
894
|
+
* Project ID of the VPC Endpoint.
|
|
895
|
+
*/
|
|
896
|
+
projectId?: string;
|
|
897
|
+
/**
|
|
898
|
+
* Zone of the VPC Endpoint.
|
|
899
|
+
*/
|
|
900
|
+
region?: Region;
|
|
901
|
+
/**
|
|
902
|
+
* Private Network ID of the VPC Endpoint.
|
|
903
|
+
*/
|
|
904
|
+
privateNetworkId: string;
|
|
901
905
|
};
|
|
902
906
|
export type CreateWafStageRequest = {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
907
|
+
/**
|
|
908
|
+
* Pipeline ID the WAF stage belongs to.
|
|
909
|
+
*/
|
|
910
|
+
pipelineId: string;
|
|
911
|
+
/**
|
|
912
|
+
* Mode defining WAF behavior (`disable`/`log_only`/`enable`).
|
|
913
|
+
*/
|
|
914
|
+
mode?: WafStageMode;
|
|
915
|
+
/**
|
|
916
|
+
* Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
|
|
917
|
+
*/
|
|
918
|
+
paranoiaLevel: number;
|
|
919
|
+
/**
|
|
920
|
+
* List of OWASP® CRS rule IDs excluded from WAF.
|
|
921
|
+
*/
|
|
922
|
+
exclusionRules?: WafExclusionRules;
|
|
923
|
+
/**
|
|
924
|
+
* ID of the backend stage to forward requests to after the WAF stage.
|
|
925
|
+
*
|
|
926
|
+
* One-of ('next'): at most one of 'backendStageId' could be set.
|
|
927
|
+
*/
|
|
928
|
+
backendStageId?: string;
|
|
925
929
|
};
|
|
926
930
|
export type DeleteBackendStageRequest = {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
+
/**
|
|
932
|
+
* ID of the backend stage to delete.
|
|
933
|
+
*/
|
|
934
|
+
backendStageId: string;
|
|
931
935
|
};
|
|
932
936
|
export type DeleteCacheStageRequest = {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
+
/**
|
|
938
|
+
* ID of the cache stage to delete.
|
|
939
|
+
*/
|
|
940
|
+
cacheStageId: string;
|
|
937
941
|
};
|
|
938
942
|
export type DeleteCurrentPlanRequest = {
|
|
939
|
-
|
|
943
|
+
projectId?: string;
|
|
940
944
|
};
|
|
941
945
|
export type DeleteDNSStageRequest = {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
+
/**
|
|
947
|
+
* ID of the DNS stage to delete.
|
|
948
|
+
*/
|
|
949
|
+
dnsStageId: string;
|
|
946
950
|
};
|
|
947
951
|
export type DeletePipelineRequest = {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
+
/**
|
|
953
|
+
* ID of the pipeline to delete.
|
|
954
|
+
*/
|
|
955
|
+
pipelineId: string;
|
|
952
956
|
};
|
|
953
957
|
export type DeleteRouteStageRequest = {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
+
/**
|
|
959
|
+
* ID of the route stage to delete.
|
|
960
|
+
*/
|
|
961
|
+
routeStageId: string;
|
|
958
962
|
};
|
|
959
963
|
export type DeleteTLSStageRequest = {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
+
/**
|
|
965
|
+
* ID of the TLS stage to delete.
|
|
966
|
+
*/
|
|
967
|
+
tlsStageId: string;
|
|
964
968
|
};
|
|
965
969
|
export type DeleteVPCEndpointRequest = {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
+
/**
|
|
971
|
+
* The VPC Endpoint ID.
|
|
972
|
+
*/
|
|
973
|
+
vpcEndpointId: string;
|
|
970
974
|
};
|
|
971
975
|
export type DeleteWafStageRequest = {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
+
/**
|
|
977
|
+
* ID of the WAF stage to delete.
|
|
978
|
+
*/
|
|
979
|
+
wafStageId: string;
|
|
976
980
|
};
|
|
977
981
|
export type GetBackendStageRequest = {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
+
/**
|
|
983
|
+
* ID of the requested backend stage.
|
|
984
|
+
*/
|
|
985
|
+
backendStageId: string;
|
|
982
986
|
};
|
|
983
987
|
export type GetBillingRequest = {
|
|
984
|
-
|
|
988
|
+
projectId?: string;
|
|
985
989
|
};
|
|
986
990
|
export interface GetBillingResponse {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
991
|
+
/**
|
|
992
|
+
* Information on the currently-selected, active Edge Services subscription plan.
|
|
993
|
+
*/
|
|
994
|
+
currentPlan?: PlanDetails;
|
|
995
|
+
/**
|
|
996
|
+
* Cost to date (this month) for Edge Service subscription plans. This comprises the pro-rata cost of the current subscription plan, and any previous subscription plans that were active earlier in the month.
|
|
997
|
+
*/
|
|
998
|
+
planCost?: Money;
|
|
999
|
+
/**
|
|
1000
|
+
* Total number of pipelines currently configured.
|
|
1001
|
+
*/
|
|
1002
|
+
pipelineNumber: number;
|
|
1003
|
+
/**
|
|
1004
|
+
* Cost to date (this month) of pipelines not included in the subscription plans.
|
|
1005
|
+
*/
|
|
1006
|
+
extraPipelinesCost?: Money;
|
|
1007
|
+
/**
|
|
1008
|
+
* Total amount of data egressed from the cache in gigabytes from the beginning of the month, for the active subscription plan.
|
|
1009
|
+
*/
|
|
1010
|
+
currentPlanCacheUsage: number;
|
|
1011
|
+
/**
|
|
1012
|
+
* Total amount of extra data egressed from cache in gigabytes from the beginning of the month, not included in the subscription plans.
|
|
1013
|
+
*/
|
|
1014
|
+
extraCacheUsage: number;
|
|
1015
|
+
/**
|
|
1016
|
+
* Cost to date (this month) of the data egressed from the cache that is not included in the subscription plans.
|
|
1017
|
+
*/
|
|
1018
|
+
extraCacheCost?: Money;
|
|
1019
|
+
/**
|
|
1020
|
+
* Total number of requests processed by the WAF since the beginning of the current month, for the active subscription plan.
|
|
1021
|
+
*/
|
|
1022
|
+
currentPlanWafUsage: number;
|
|
1023
|
+
/**
|
|
1024
|
+
* Total number of extra requests processed by the WAF from the beginning of the month, not included in the subscription plans.
|
|
1025
|
+
*/
|
|
1026
|
+
extraWafUsage: number;
|
|
1027
|
+
/**
|
|
1028
|
+
* Cost to date (this month) of the extra requests processed by the WAF that were not included in the subscription plans.
|
|
1029
|
+
*/
|
|
1030
|
+
extraWafCost?: Money;
|
|
1031
|
+
/**
|
|
1032
|
+
* Cost of activating WAF add-on (where subscription plan does not include WAF).
|
|
1033
|
+
*/
|
|
1034
|
+
wafAddOn?: Money;
|
|
1035
|
+
/**
|
|
1036
|
+
* Detailed costs and usage for all Edge Services subscription plans that were activated during the month.
|
|
1037
|
+
*/
|
|
1038
|
+
plansUsageDetails: Record<string, PlanUsageDetails>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Total cost to date (this month) of all Edge Services resources including active subscription plan, previously active plans, extra pipelines and extra egress cache data.
|
|
1041
|
+
*/
|
|
1042
|
+
totalCost?: Money;
|
|
1039
1043
|
}
|
|
1040
1044
|
export type GetCacheStageRequest = {
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
+
/**
|
|
1046
|
+
* ID of the requested cache stage.
|
|
1047
|
+
*/
|
|
1048
|
+
cacheStageId: string;
|
|
1045
1049
|
};
|
|
1046
1050
|
export type GetCurrentPlanRequest = {
|
|
1047
|
-
|
|
1051
|
+
projectId?: string;
|
|
1048
1052
|
};
|
|
1049
1053
|
export type GetDNSStageRequest = {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
+
/**
|
|
1055
|
+
* ID of the requested DNS stage.
|
|
1056
|
+
*/
|
|
1057
|
+
dnsStageId: string;
|
|
1054
1058
|
};
|
|
1055
1059
|
export type GetPipelineRequest = {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
+
/**
|
|
1061
|
+
* ID of the requested pipeline.
|
|
1062
|
+
*/
|
|
1063
|
+
pipelineId: string;
|
|
1060
1064
|
};
|
|
1061
1065
|
export type GetPurgeRequestRequest = {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
+
/**
|
|
1067
|
+
* ID of the requested purge request.
|
|
1068
|
+
*/
|
|
1069
|
+
purgeRequestId: string;
|
|
1066
1070
|
};
|
|
1067
1071
|
export type GetRouteStageRequest = {
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
+
/**
|
|
1073
|
+
* ID of the requested route stage.
|
|
1074
|
+
*/
|
|
1075
|
+
routeStageId: string;
|
|
1072
1076
|
};
|
|
1073
1077
|
export type GetTLSStageRequest = {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
+
/**
|
|
1079
|
+
* ID of the requested TLS stage.
|
|
1080
|
+
*/
|
|
1081
|
+
tlsStageId: string;
|
|
1078
1082
|
};
|
|
1079
1083
|
export type GetVPCEndpointRequest = {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
+
/**
|
|
1085
|
+
* The VPC Endpoint ID.
|
|
1086
|
+
*/
|
|
1087
|
+
vpcEndpointId: string;
|
|
1084
1088
|
};
|
|
1085
1089
|
export type GetWafStageRequest = {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
+
/**
|
|
1091
|
+
* ID of the requested WAF stage.
|
|
1092
|
+
*/
|
|
1093
|
+
wafStageId: string;
|
|
1090
1094
|
};
|
|
1091
1095
|
export interface HeadStageResponse {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
+
/**
|
|
1097
|
+
* Modified or created head stage.
|
|
1098
|
+
*/
|
|
1099
|
+
headStage?: HeadStageResponseHeadStage;
|
|
1096
1100
|
}
|
|
1097
1101
|
export type ListBackendStagesRequest = {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1102
|
+
/**
|
|
1103
|
+
* Pipeline ID to filter for. Only backend stages from this pipeline will be returned.
|
|
1104
|
+
*/
|
|
1105
|
+
pipelineId: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* Sort order of backend stages in the response.
|
|
1108
|
+
*/
|
|
1109
|
+
orderBy?: ListBackendStagesRequestOrderBy;
|
|
1110
|
+
/**
|
|
1111
|
+
* Page number to return, from the paginated results.
|
|
1112
|
+
*/
|
|
1113
|
+
page?: number;
|
|
1114
|
+
/**
|
|
1115
|
+
* Number of backend stages to return per page.
|
|
1116
|
+
*/
|
|
1117
|
+
pageSize?: number;
|
|
1118
|
+
/**
|
|
1119
|
+
* Bucket name to filter for. Only backend stages from this Bucket will be returned.
|
|
1120
|
+
*/
|
|
1121
|
+
bucketName?: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Bucket region to filter for. Only backend stages with buckets in this region will be returned.
|
|
1124
|
+
*/
|
|
1125
|
+
bucketRegion?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned.
|
|
1128
|
+
*/
|
|
1129
|
+
lbId?: string;
|
|
1126
1130
|
};
|
|
1127
1131
|
export interface ListBackendStagesResponse {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1132
|
+
/**
|
|
1133
|
+
* Paginated list of backend stages.
|
|
1134
|
+
*/
|
|
1135
|
+
stages: BackendStage[];
|
|
1136
|
+
/**
|
|
1137
|
+
* Count of all backend stages matching the requested criteria.
|
|
1138
|
+
*/
|
|
1139
|
+
totalCount: number;
|
|
1136
1140
|
}
|
|
1137
1141
|
export type ListCacheStagesRequest = {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1142
|
+
/**
|
|
1143
|
+
* Pipeline ID to filter for. Only cache stages from this pipeline will be returned.
|
|
1144
|
+
*/
|
|
1145
|
+
pipelineId: string;
|
|
1146
|
+
/**
|
|
1147
|
+
* Sort order of cache stages in the response.
|
|
1148
|
+
*/
|
|
1149
|
+
orderBy?: ListCacheStagesRequestOrderBy;
|
|
1150
|
+
/**
|
|
1151
|
+
* Page number to return, from the paginated results.
|
|
1152
|
+
*/
|
|
1153
|
+
page?: number;
|
|
1154
|
+
/**
|
|
1155
|
+
* Number of cache stages to return per page.
|
|
1156
|
+
*/
|
|
1157
|
+
pageSize?: number;
|
|
1154
1158
|
};
|
|
1155
1159
|
export interface ListCacheStagesResponse {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1160
|
+
/**
|
|
1161
|
+
* Paginated list of cache stages.
|
|
1162
|
+
*/
|
|
1163
|
+
stages: CacheStage[];
|
|
1164
|
+
/**
|
|
1165
|
+
* Count of all cache stages matching the requested criteria.
|
|
1166
|
+
*/
|
|
1167
|
+
totalCount: number;
|
|
1164
1168
|
}
|
|
1165
1169
|
export type ListDNSStagesRequest = {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* Pipeline ID to filter for. Only DNS stages from this pipeline will be returned.
|
|
1172
|
+
*/
|
|
1173
|
+
pipelineId: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Sort order of DNS stages in the response.
|
|
1176
|
+
*/
|
|
1177
|
+
orderBy?: ListDNSStagesRequestOrderBy;
|
|
1178
|
+
/**
|
|
1179
|
+
* Page number to return, from the paginated results.
|
|
1180
|
+
*/
|
|
1181
|
+
page?: number;
|
|
1182
|
+
/**
|
|
1183
|
+
* Number of DNS stages to return per page.
|
|
1184
|
+
*/
|
|
1185
|
+
pageSize?: number;
|
|
1186
|
+
/**
|
|
1187
|
+
* Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned.
|
|
1188
|
+
*/
|
|
1189
|
+
fqdn?: string;
|
|
1186
1190
|
};
|
|
1187
1191
|
export interface ListDNSStagesResponse {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1192
|
+
/**
|
|
1193
|
+
* Paginated list of DNS stages.
|
|
1194
|
+
*/
|
|
1195
|
+
stages: DNSStage[];
|
|
1196
|
+
/**
|
|
1197
|
+
* Count of all DNS stages matching the requested criteria.
|
|
1198
|
+
*/
|
|
1199
|
+
totalCount: number;
|
|
1196
1200
|
}
|
|
1197
1201
|
export type ListHeadStagesRequest = {
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1202
|
+
/**
|
|
1203
|
+
* ID of the pipeline to update.
|
|
1204
|
+
*/
|
|
1205
|
+
pipelineId: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* Page number to return, from the paginated results.
|
|
1208
|
+
*/
|
|
1209
|
+
page?: number;
|
|
1210
|
+
/**
|
|
1211
|
+
* Number of head stages to return per page.
|
|
1212
|
+
*/
|
|
1213
|
+
pageSize?: number;
|
|
1210
1214
|
};
|
|
1211
1215
|
export interface ListHeadStagesResponse {
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1216
|
+
/**
|
|
1217
|
+
* Number of head stages to return per page.
|
|
1218
|
+
*/
|
|
1219
|
+
headStages: ListHeadStagesResponseHeadStage[];
|
|
1220
|
+
/**
|
|
1221
|
+
* Count of all head stages matching the requested pipeline_id.
|
|
1222
|
+
*/
|
|
1223
|
+
totalCount: number;
|
|
1220
1224
|
}
|
|
1221
1225
|
export interface ListNodesResponse {
|
|
1222
|
-
|
|
1223
|
-
|
|
1226
|
+
nodes: Node[];
|
|
1227
|
+
totalCount: number;
|
|
1224
1228
|
}
|
|
1225
1229
|
export type ListPipelinesRequest = {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1230
|
+
/**
|
|
1231
|
+
* Sort order of pipelines in the response.
|
|
1232
|
+
*/
|
|
1233
|
+
orderBy?: ListPipelinesRequestOrderBy;
|
|
1234
|
+
/**
|
|
1235
|
+
* Page number to return, from the paginated results.
|
|
1236
|
+
*/
|
|
1237
|
+
page?: number;
|
|
1238
|
+
/**
|
|
1239
|
+
* Number of pipelines to return per page.
|
|
1240
|
+
*/
|
|
1241
|
+
pageSize?: number;
|
|
1242
|
+
/**
|
|
1243
|
+
* Pipeline name to filter for. Only pipelines with this string within their name will be returned.
|
|
1244
|
+
*/
|
|
1245
|
+
name?: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* Organization ID to filter for. Only pipelines from this Organization will be returned.
|
|
1248
|
+
*/
|
|
1249
|
+
organizationId?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* Project ID to filter for. Only pipelines from this Project will be returned.
|
|
1252
|
+
*/
|
|
1253
|
+
projectId?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Filter on backend stage. Only pipelines with a Load Balancer origin will be returned.
|
|
1256
|
+
*/
|
|
1257
|
+
hasBackendStageLb?: boolean;
|
|
1254
1258
|
};
|
|
1255
1259
|
export interface ListPipelinesResponse {
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1260
|
+
/**
|
|
1261
|
+
* Paginated list of pipelines.
|
|
1262
|
+
*/
|
|
1263
|
+
pipelines: Pipeline[];
|
|
1264
|
+
/**
|
|
1265
|
+
* Count of all pipelines matching the requested criteria.
|
|
1266
|
+
*/
|
|
1267
|
+
totalCount: number;
|
|
1264
1268
|
}
|
|
1265
1269
|
export type ListPipelinesWithStagesRequest = {
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1270
|
+
orderBy?: ListPipelinesWithStagesRequestOrderBy;
|
|
1271
|
+
page?: number;
|
|
1272
|
+
pageSize?: number;
|
|
1273
|
+
name?: string;
|
|
1274
|
+
organizationId?: string;
|
|
1275
|
+
projectId?: string;
|
|
1272
1276
|
};
|
|
1273
1277
|
export interface ListPipelinesWithStagesResponse {
|
|
1274
|
-
|
|
1275
|
-
|
|
1278
|
+
pipelines: PipelineStages[];
|
|
1279
|
+
totalCount: number;
|
|
1276
1280
|
}
|
|
1277
1281
|
export interface ListPlansResponse {
|
|
1278
|
-
|
|
1279
|
-
|
|
1282
|
+
totalCount: number;
|
|
1283
|
+
plans: PlanDetails[];
|
|
1280
1284
|
}
|
|
1281
1285
|
export type ListPurgeRequestsRequest = {
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1286
|
+
/**
|
|
1287
|
+
* Sort order of purge requests in the response.
|
|
1288
|
+
*/
|
|
1289
|
+
orderBy?: ListPurgeRequestsRequestOrderBy;
|
|
1290
|
+
/**
|
|
1291
|
+
* Page number to return, from the paginated results.
|
|
1292
|
+
*/
|
|
1293
|
+
page?: number;
|
|
1294
|
+
/**
|
|
1295
|
+
* Number of purge requests to return per page.
|
|
1296
|
+
*/
|
|
1297
|
+
pageSize?: number;
|
|
1298
|
+
/**
|
|
1299
|
+
* Organization ID to filter for. Only purge requests from this Organization will be returned.
|
|
1300
|
+
*/
|
|
1301
|
+
organizationId?: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* Project ID to filter for. Only purge requests from this Project will be returned.
|
|
1304
|
+
*/
|
|
1305
|
+
projectId?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* Pipeline ID to filter for. Only purge requests from this pipeline will be returned.
|
|
1308
|
+
*/
|
|
1309
|
+
pipelineId?: string;
|
|
1306
1310
|
};
|
|
1307
1311
|
export interface ListPurgeRequestsResponse {
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1312
|
+
/**
|
|
1313
|
+
* Paginated list of purge requests.
|
|
1314
|
+
*/
|
|
1315
|
+
purgeRequests: PurgeRequest[];
|
|
1316
|
+
/**
|
|
1317
|
+
* Count of all purge requests matching the requested criteria.
|
|
1318
|
+
*/
|
|
1319
|
+
totalCount: number;
|
|
1316
1320
|
}
|
|
1317
1321
|
export type ListRouteRulesRequest = {
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
+
/**
|
|
1323
|
+
* Route stage ID to filter for. Only route rules from this route stage will be returned.
|
|
1324
|
+
*/
|
|
1325
|
+
routeStageId: string;
|
|
1322
1326
|
};
|
|
1323
1327
|
export interface ListRouteRulesResponse {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1328
|
+
/**
|
|
1329
|
+
* List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
|
|
1330
|
+
*/
|
|
1331
|
+
routeRules: RouteRule[];
|
|
1332
|
+
/**
|
|
1333
|
+
* Count of all route rules matching the requested criteria.
|
|
1334
|
+
*/
|
|
1335
|
+
totalCount: number;
|
|
1332
1336
|
}
|
|
1333
1337
|
export type ListRouteStagesRequest = {
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1338
|
+
/**
|
|
1339
|
+
* Pipeline ID to filter for. Only route stages from this pipeline will be returned.
|
|
1340
|
+
*/
|
|
1341
|
+
pipelineId: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* Sort order of route stages in the response.
|
|
1344
|
+
*/
|
|
1345
|
+
orderBy?: ListRouteStagesRequestOrderBy;
|
|
1346
|
+
/**
|
|
1347
|
+
* Page number to return, from the paginated results.
|
|
1348
|
+
*/
|
|
1349
|
+
page?: number;
|
|
1350
|
+
/**
|
|
1351
|
+
* Number of route stages to return per page.
|
|
1352
|
+
*/
|
|
1353
|
+
pageSize?: number;
|
|
1350
1354
|
};
|
|
1351
1355
|
export interface ListRouteStagesResponse {
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1356
|
+
/**
|
|
1357
|
+
* Paginated list of summarized route stages.
|
|
1358
|
+
*/
|
|
1359
|
+
stages: RouteStage[];
|
|
1360
|
+
/**
|
|
1361
|
+
* Count of all route stages matching the requested criteria.
|
|
1362
|
+
*/
|
|
1363
|
+
totalCount: number;
|
|
1360
1364
|
}
|
|
1361
1365
|
export type ListTLSStagesRequest = {
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1366
|
+
/**
|
|
1367
|
+
* Pipeline ID to filter for. Only TLS stages from this pipeline will be returned.
|
|
1368
|
+
*/
|
|
1369
|
+
pipelineId: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* Sort order of TLS stages in the response.
|
|
1372
|
+
*/
|
|
1373
|
+
orderBy?: ListTLSStagesRequestOrderBy;
|
|
1374
|
+
/**
|
|
1375
|
+
* Page number to return, from the paginated results.
|
|
1376
|
+
*/
|
|
1377
|
+
page?: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* Number of TLS stages to return per page.
|
|
1380
|
+
*/
|
|
1381
|
+
pageSize?: number;
|
|
1382
|
+
/**
|
|
1383
|
+
* Secret ID to filter for. Only TLS stages with this Secret ID will be returned.
|
|
1384
|
+
*/
|
|
1385
|
+
secretId?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* Secret region to filter for. Only TLS stages with a Secret in this region will be returned.
|
|
1388
|
+
*/
|
|
1389
|
+
secretRegion?: string;
|
|
1386
1390
|
};
|
|
1387
1391
|
export interface ListTLSStagesResponse {
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1392
|
+
/**
|
|
1393
|
+
* Paginated list of TLS stages.
|
|
1394
|
+
*/
|
|
1395
|
+
stages: TLSStage[];
|
|
1396
|
+
/**
|
|
1397
|
+
* Count of all TLS stages matching the requested criteria.
|
|
1398
|
+
*/
|
|
1399
|
+
totalCount: number;
|
|
1396
1400
|
}
|
|
1397
1401
|
export type ListVPCEndpointsRequest = {
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1402
|
+
/**
|
|
1403
|
+
* Sort order of VPC Endpoints in the response.
|
|
1404
|
+
*/
|
|
1405
|
+
orderBy?: ListVPCEndpointsRequestOrderBy;
|
|
1406
|
+
/**
|
|
1407
|
+
* Page number to return, from the paginated results.
|
|
1408
|
+
*/
|
|
1409
|
+
page?: number;
|
|
1410
|
+
/**
|
|
1411
|
+
* Number of VPC Endpoints to return per page.
|
|
1412
|
+
*/
|
|
1413
|
+
pageSize?: number;
|
|
1414
|
+
/**
|
|
1415
|
+
* Project ID to filter for. Only VPC Endpoints from this project will be returned.
|
|
1416
|
+
*/
|
|
1417
|
+
projectId?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* Organization ID to filter for. Only VPC Endpoints from this Organization will be returned.
|
|
1420
|
+
*/
|
|
1421
|
+
organizationId?: string;
|
|
1418
1422
|
};
|
|
1419
1423
|
export interface ListVPCEndpointsResponse {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1424
|
+
/**
|
|
1425
|
+
* Paginated list of VPC Endpoints.
|
|
1426
|
+
*/
|
|
1427
|
+
vpcEndpoints: VPCEndpoint[];
|
|
1428
|
+
/**
|
|
1429
|
+
* Count of all VPC Endpoints matching the requested criteria.
|
|
1430
|
+
*/
|
|
1431
|
+
totalCount: number;
|
|
1428
1432
|
}
|
|
1429
1433
|
export type ListWafStagesRequest = {
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1434
|
+
/**
|
|
1435
|
+
* Pipeline ID to filter for. Only WAF stages from this pipeline will be returned.
|
|
1436
|
+
*/
|
|
1437
|
+
pipelineId: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* Sort order of WAF stages in the response.
|
|
1440
|
+
*/
|
|
1441
|
+
orderBy?: ListWafStagesRequestOrderBy;
|
|
1442
|
+
/**
|
|
1443
|
+
* Page number to return, from the paginated results.
|
|
1444
|
+
*/
|
|
1445
|
+
page?: number;
|
|
1446
|
+
/**
|
|
1447
|
+
* Number of WAF stages to return per page.
|
|
1448
|
+
*/
|
|
1449
|
+
pageSize?: number;
|
|
1446
1450
|
};
|
|
1447
1451
|
export interface ListWafStagesResponse {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1452
|
+
/**
|
|
1453
|
+
* Paginated list of WAF stages.
|
|
1454
|
+
*/
|
|
1455
|
+
stages: WafStage[];
|
|
1456
|
+
/**
|
|
1457
|
+
* Count of all WAF stages matching the requested criteria.
|
|
1458
|
+
*/
|
|
1459
|
+
totalCount: number;
|
|
1456
1460
|
}
|
|
1457
1461
|
export interface Plan {
|
|
1458
|
-
|
|
1462
|
+
planName: PlanName;
|
|
1459
1463
|
}
|
|
1460
1464
|
export type SearchBackendStagesRequest = {
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1465
|
+
orderBy?: SearchBackendStagesRequestOrderBy;
|
|
1466
|
+
page?: number;
|
|
1467
|
+
pageSize?: number;
|
|
1468
|
+
projectId?: string;
|
|
1469
|
+
bucketName?: string;
|
|
1470
|
+
bucketRegion?: string;
|
|
1471
|
+
lbId?: string;
|
|
1468
1472
|
};
|
|
1469
1473
|
export type SearchRouteRulesRequest = {
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1474
|
+
orderBy?: SearchRouteRulesRequestOrderBy;
|
|
1475
|
+
page?: number;
|
|
1476
|
+
pageSize?: number;
|
|
1477
|
+
organizationId?: string;
|
|
1478
|
+
projectId?: string;
|
|
1475
1479
|
};
|
|
1476
1480
|
export type SearchWafStagesRequest = {
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
+
orderBy?: SearchWafStagesRequestOrderBy;
|
|
1482
|
+
page?: number;
|
|
1483
|
+
pageSize?: number;
|
|
1484
|
+
projectId?: string;
|
|
1481
1485
|
};
|
|
1482
1486
|
export type SelectPlanRequest = {
|
|
1483
|
-
|
|
1484
|
-
|
|
1487
|
+
projectId?: string;
|
|
1488
|
+
planName?: PlanName;
|
|
1485
1489
|
};
|
|
1486
1490
|
export type SetHeadStageRequest = {
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1491
|
+
/**
|
|
1492
|
+
* ID of the pipeline to update.
|
|
1493
|
+
*/
|
|
1494
|
+
pipelineId: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* Add a new head stage.
|
|
1497
|
+
*
|
|
1498
|
+
* One-of ('action'): at most one of 'addNewHeadStage', 'removeHeadStage', 'swapHeadStage' could be set.
|
|
1499
|
+
*/
|
|
1500
|
+
addNewHeadStage?: SetHeadStageRequestAddNewHeadStage;
|
|
1501
|
+
/**
|
|
1502
|
+
* Remove a head stage.
|
|
1503
|
+
*
|
|
1504
|
+
* One-of ('action'): at most one of 'addNewHeadStage', 'removeHeadStage', 'swapHeadStage' could be set.
|
|
1505
|
+
*/
|
|
1506
|
+
removeHeadStage?: SetHeadStageRequestRemoveHeadStage;
|
|
1507
|
+
/**
|
|
1508
|
+
* Replace a head stage with a new one.
|
|
1509
|
+
*
|
|
1510
|
+
* One-of ('action'): at most one of 'addNewHeadStage', 'removeHeadStage', 'swapHeadStage' could be set.
|
|
1511
|
+
*/
|
|
1512
|
+
swapHeadStage?: SetHeadStageRequestSwapHeadStage;
|
|
1509
1513
|
};
|
|
1510
1514
|
export type SetPipelineVPCEndpointsRequest = {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1515
|
+
/**
|
|
1516
|
+
* Pipeline ID for which VPC Endpoints must be set.
|
|
1517
|
+
*/
|
|
1518
|
+
pipelineId: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* List of VPC Endpoints to attach.
|
|
1521
|
+
*/
|
|
1522
|
+
vpcEndpointIds?: string[];
|
|
1519
1523
|
};
|
|
1520
1524
|
export interface SetPipelineVPCEndpointsResponse {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1525
|
+
/**
|
|
1526
|
+
* Pipeline ID.
|
|
1527
|
+
*/
|
|
1528
|
+
pipelineId: string;
|
|
1529
|
+
/**
|
|
1530
|
+
* List of VPC Endpoints for the given Pipeline ID.
|
|
1531
|
+
*/
|
|
1532
|
+
vpcEndpoints: VPCEndpoint[];
|
|
1533
|
+
/**
|
|
1534
|
+
* Count of all VPC Endpoints for the given Pipeline ID.
|
|
1535
|
+
*/
|
|
1536
|
+
totalCount: number;
|
|
1533
1537
|
}
|
|
1534
1538
|
export type SetRouteRulesRequest = {
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1539
|
+
/**
|
|
1540
|
+
* ID of the route stage to update.
|
|
1541
|
+
*/
|
|
1542
|
+
routeStageId: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
|
|
1545
|
+
*/
|
|
1546
|
+
routeRules?: SetRouteRulesRequestRouteRule[];
|
|
1543
1547
|
};
|
|
1544
1548
|
export interface SetRouteRulesResponse {
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
+
/**
|
|
1550
|
+
* List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`.
|
|
1551
|
+
*/
|
|
1552
|
+
routeRules: RouteRule[];
|
|
1549
1553
|
}
|
|
1550
1554
|
export type UpdateBackendStageRequest = {
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1555
|
+
/**
|
|
1556
|
+
* ID of the backend stage to update.
|
|
1557
|
+
*/
|
|
1558
|
+
backendStageId: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* Scaleway Object Storage origin bucket (S3) linked to the backend stage.
|
|
1561
|
+
*
|
|
1562
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
1563
|
+
*/
|
|
1564
|
+
scalewayS3?: ScalewayS3BackendConfig;
|
|
1565
|
+
/**
|
|
1566
|
+
* Scaleway Load Balancer origin linked to the backend stage.
|
|
1567
|
+
*
|
|
1568
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
1569
|
+
*/
|
|
1570
|
+
scalewayLb?: ScalewayLbBackendConfig;
|
|
1571
|
+
/**
|
|
1572
|
+
* Scaleway Serverless container origin linked to the backend stage.
|
|
1573
|
+
*
|
|
1574
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
1575
|
+
*/
|
|
1576
|
+
scalewayServerlessContainer?: ScalewayServerlessContainerBackendConfig;
|
|
1577
|
+
/**
|
|
1578
|
+
* Scaleway Serverless function origin linked to the backend stage.
|
|
1579
|
+
*
|
|
1580
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer', 'scalewayServerlessFunction' could be set.
|
|
1581
|
+
*/
|
|
1582
|
+
scalewayServerlessFunction?: ScalewayServerlessFunctionBackendConfig;
|
|
1583
|
+
/**
|
|
1584
|
+
* Pipeline ID the Backend stage belongs to.
|
|
1585
|
+
*/
|
|
1586
|
+
pipelineId: string;
|
|
1583
1587
|
};
|
|
1584
1588
|
export type UpdateCacheStageRequest = {
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1589
|
+
/**
|
|
1590
|
+
* ID of the cache stage to update.
|
|
1591
|
+
*/
|
|
1592
|
+
cacheStageId: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* Time To Live (TTL) in seconds. Defines how long content is cached.
|
|
1595
|
+
*/
|
|
1596
|
+
fallbackTtl?: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* Defines whether responses to requests with cookies must be stored in the cache.
|
|
1599
|
+
*/
|
|
1600
|
+
includeCookies?: boolean;
|
|
1601
|
+
/**
|
|
1602
|
+
* Backend stage ID the cache stage will be linked to.
|
|
1603
|
+
*
|
|
1604
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
1605
|
+
*/
|
|
1606
|
+
backendStageId?: string;
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
1610
|
+
*/
|
|
1611
|
+
wafStageId?: string;
|
|
1612
|
+
/**
|
|
1613
|
+
*
|
|
1614
|
+
* One-of ('next'): at most one of 'backendStageId', 'wafStageId', 'routeStageId' could be set.
|
|
1615
|
+
*/
|
|
1616
|
+
routeStageId?: string;
|
|
1613
1617
|
};
|
|
1614
1618
|
export type UpdateDNSStageRequest = {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1619
|
+
/**
|
|
1620
|
+
* ID of the DNS stage to update.
|
|
1621
|
+
*/
|
|
1622
|
+
dnsStageId: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now).
|
|
1625
|
+
*/
|
|
1626
|
+
fqdns?: string[];
|
|
1627
|
+
/**
|
|
1628
|
+
* TLS stage ID the DNS stage will be linked to.
|
|
1629
|
+
*
|
|
1630
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
1631
|
+
*/
|
|
1632
|
+
tlsStageId?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Cache stage ID the DNS stage will be linked to.
|
|
1635
|
+
*
|
|
1636
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
1637
|
+
*/
|
|
1638
|
+
cacheStageId?: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Backend stage ID the DNS stage will be linked to.
|
|
1641
|
+
*
|
|
1642
|
+
* One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
|
|
1643
|
+
*/
|
|
1644
|
+
backendStageId?: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).
|
|
1647
|
+
*/
|
|
1648
|
+
wildcardDomain?: boolean;
|
|
1649
|
+
/**
|
|
1650
|
+
* When true, Fully Qualified Domain Names are accessible exclusively within the VPC.
|
|
1651
|
+
*/
|
|
1652
|
+
fullPrivate?: boolean;
|
|
1649
1653
|
};
|
|
1650
1654
|
export type UpdatePipelineRequest = {
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1655
|
+
/**
|
|
1656
|
+
* ID of the pipeline to update.
|
|
1657
|
+
*/
|
|
1658
|
+
pipelineId: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* Name of the pipeline.
|
|
1661
|
+
*/
|
|
1662
|
+
name?: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* Description of the pipeline.
|
|
1665
|
+
*/
|
|
1666
|
+
description?: string;
|
|
1663
1667
|
};
|
|
1664
1668
|
export type UpdateRouteStageRequest = {
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1669
|
+
/**
|
|
1670
|
+
* ID of the route stage to update.
|
|
1671
|
+
*/
|
|
1672
|
+
routeStageId: string;
|
|
1673
|
+
/**
|
|
1674
|
+
* ID of the WAF stage HTTP requests should be forwarded to when no rules are matched.
|
|
1675
|
+
*
|
|
1676
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
1677
|
+
*/
|
|
1678
|
+
wafStageId?: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
|
|
1681
|
+
*
|
|
1682
|
+
* One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
|
|
1683
|
+
*/
|
|
1684
|
+
backendStageId?: string;
|
|
1681
1685
|
};
|
|
1682
1686
|
export type UpdateTLSStageRequest = {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1687
|
+
/**
|
|
1688
|
+
* ID of the TLS stage to update.
|
|
1689
|
+
*/
|
|
1690
|
+
tlsStageId: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* Secret (from Scaleway Secret-Manager) containing your custom certificate.
|
|
1693
|
+
*/
|
|
1694
|
+
tlsSecretsConfig?: TLSSecretsConfig;
|
|
1695
|
+
/**
|
|
1696
|
+
* True when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint.
|
|
1697
|
+
*/
|
|
1698
|
+
managedCertificate?: boolean;
|
|
1699
|
+
/**
|
|
1700
|
+
* Cache stage ID the TLS stage will be linked to.
|
|
1701
|
+
*
|
|
1702
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
1703
|
+
*/
|
|
1704
|
+
cacheStageId?: string;
|
|
1705
|
+
/**
|
|
1706
|
+
* Backend stage ID the TLS stage will be linked to.
|
|
1707
|
+
*
|
|
1708
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
1709
|
+
*/
|
|
1710
|
+
backendStageId?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
*
|
|
1713
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
1714
|
+
*/
|
|
1715
|
+
routeStageId?: string;
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* One-of ('next'): at most one of 'cacheStageId', 'backendStageId', 'routeStageId', 'wafStageId' could be set.
|
|
1719
|
+
*/
|
|
1720
|
+
wafStageId?: string;
|
|
1717
1721
|
};
|
|
1718
1722
|
export type UpdateWafStageRequest = {
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1723
|
+
/**
|
|
1724
|
+
* ID of the WAF stage to update.
|
|
1725
|
+
*/
|
|
1726
|
+
wafStageId: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Mode defining WAF behavior (`disable`/`log_only`/`enable`).
|
|
1729
|
+
*/
|
|
1730
|
+
mode?: WafStageMode;
|
|
1731
|
+
/**
|
|
1732
|
+
* Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
|
|
1733
|
+
*/
|
|
1734
|
+
paranoiaLevel?: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* List of OWASP® CRS rule IDs excluded from WAF.
|
|
1737
|
+
*/
|
|
1738
|
+
exclusionRules?: WafExclusionRules;
|
|
1739
|
+
/**
|
|
1740
|
+
* ID of the backend stage to forward requests to after the WAF stage.
|
|
1741
|
+
*
|
|
1742
|
+
* One-of ('next'): at most one of 'backendStageId' could be set.
|
|
1743
|
+
*/
|
|
1744
|
+
backendStageId?: string;
|
|
1741
1745
|
};
|
|
1746
|
+
//#endregion
|