@distilled.cloud/stackit 1.0.0-rc.17 → 1.0.0-rc.19
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/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/alb.d.ts +134 -132
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +27 -26
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +51 -51
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +32 -31
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +15 -15
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +47 -46
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +24 -1
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +129 -129
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +30 -29
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +40 -40
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +15 -15
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +218 -161
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -38
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +49 -34
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -1
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +21 -21
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +28 -1
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +104 -101
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +27 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +120 -29
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +38 -33
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +430 -415
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +180 -179
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +204 -0
- package/lib/services/identity.d.ts.map +1 -0
- package/lib/services/identity.js +2 -0
- package/lib/services/identity.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/intake.d.ts +58 -58
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +28 -27
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +13 -13
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +40 -39
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +14 -14
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -1
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +128 -126
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +28 -27
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +96 -45
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +35 -31
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +78 -24
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -32
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mailout.d.ts +476 -0
- package/lib/services/mailout.d.ts.map +1 -0
- package/lib/services/mailout.js +33 -0
- package/lib/services/mailout.js.map +1 -0
- package/lib/services/mariadb.d.ts +81 -30
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +36 -32
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +33 -33
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +25 -25
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +142 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +41 -40
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +6 -6
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +37 -36
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +362 -362
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +158 -157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +87 -36
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +36 -32
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +334 -278
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +30 -29
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +59 -55
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -45
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +36 -36
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +36 -35
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +92 -41
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +37 -33
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +26 -22
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +56 -56
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +35 -34
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +42 -42
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +349 -213
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +32 -23
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +24 -24
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +39 -38
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -21
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +41 -40
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +31 -31
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +28 -27
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +17 -17
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +30 -30
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +29 -28
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +22 -21
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +151 -141
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -44
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +121 -110
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +25 -24
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +47 -47
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +45 -44
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +39 -39
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +25 -24
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +80 -38
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -32
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +116 -41
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +31 -27
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +55 -54
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +94 -43
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +36 -32
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +150 -142
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +42 -41
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +65 -65
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +26 -25
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/alb_waf.js +1 -1
- package/lib/services.lazy/automation.js +4 -1
- package/lib/services.lazy/cdn.js +1 -1
- package/lib/services.lazy/dns.js +2 -2
- package/lib/services.lazy/edge.js +4 -1
- package/lib/services.lazy/functions.js +3 -1
- package/lib/services.lazy/git.js +2 -2
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/identity.js +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/intake.js +1 -1
- package/lib/services.lazy/kms.js +1 -1
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +2 -2
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mailout.js +4 -0
- package/lib/services.lazy/mariadb.js +2 -2
- package/lib/services.lazy/mongodb_flex.js +1 -1
- package/lib/services.lazy/object_storage.js +1 -1
- package/lib/services.lazy/observability.js +1 -1
- package/lib/services.lazy/opensearch.js +2 -2
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/pubsub.js +1 -1
- package/lib/services.lazy/rabbitmq.js +2 -2
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/sca.js +2 -2
- package/lib/services.lazy/scf.js +1 -1
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/server_backup.js +1 -1
- package/lib/services.lazy/service_account.js +1 -1
- package/lib/services.lazy/sfs.js +2 -2
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/sqlserverflex.js +1 -1
- package/lib/services.lazy/stackit_marketplace.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +2 -2
- package/lib/services.lazy/valkey.js +2 -2
- package/lib/services.lazy/vpn.js +1 -1
- package/lib/services.lazy/workflows.js +1 -1
- package/package.json +6 -5
- package/src/credentials.ts +1 -2
- package/src/index.ts +3 -3
- package/src/pagination.ts +7 -3
- package/src/protocol.ts +22 -20
- package/src/services/alb.ts +174 -132
- package/src/services/alb_waf.ts +96 -51
- package/src/services/authorization.ts +50 -15
- package/src/services/automation.ts +86 -49
- package/src/services/cdn.ts +172 -129
- package/src/services/certificates.ts +63 -40
- package/src/services/cost.ts +34 -15
- package/src/services/dns.ts +552 -269
- package/src/services/dremio.ts +187 -118
- package/src/services/edge.ts +62 -21
- package/src/services/functions.ts +217 -170
- package/src/services/git.ts +407 -108
- package/src/services/iaas.ts +723 -415
- package/src/services/identity.ts +625 -0
- package/src/services/index.ts +2 -0
- package/src/services/intake.ts +101 -58
- package/src/services/kms.ts +76 -13
- package/src/services/lb_ip_lists.ts +37 -14
- package/src/services/load_balancer.ts +168 -126
- package/src/services/logme.ts +345 -122
- package/src/services/logs.ts +172 -72
- package/src/services/mailout.ts +1277 -0
- package/src/services/mariadb.ts +328 -105
- package/src/services/model_experiments.ts +66 -33
- package/src/services/model_serving.ts +54 -25
- package/src/services/mongodb_flex.ts +205 -137
- package/src/services/object_storage.ts +61 -6
- package/src/services/observability.ts +594 -362
- package/src/services/opensearch.ts +337 -114
- package/src/services/pim.ts +403 -278
- package/src/services/postgres_flex.ts +258 -179
- package/src/services/pubsub.ts +85 -36
- package/src/services/rabbitmq.ts +348 -125
- package/src/services/registry.ts +55 -26
- package/src/services/resource_manager.ts +102 -57
- package/src/services/run_command.ts +65 -42
- package/src/services/sca.ts +769 -371
- package/src/services/scf.ts +83 -24
- package/src/services/secrets_manager.ts +87 -22
- package/src/services/server_backup.ts +76 -31
- package/src/services/server_update.ts +54 -17
- package/src/services/service_account.ts +75 -30
- package/src/services/service_enablement.ts +49 -24
- package/src/services/sfs.ts +469 -395
- package/src/services/ske.ts +299 -228
- package/src/services/sqlserverflex.ts +116 -47
- package/src/services/stackit_marketplace.ts +78 -39
- package/src/services/telemetry_link.ts +191 -81
- package/src/services/telemetry_router.ts +326 -94
- package/src/services/ufw.ts +85 -54
- package/src/services/valkey.ts +341 -118
- package/src/services/vpn.ts +213 -142
- package/src/services/workflows.ts +106 -65
package/src/services/cdn.ts
CHANGED
|
@@ -13,6 +13,19 @@ const __s: any[] = [];
|
|
|
13
13
|
|
|
14
14
|
export type { StackitOpError, StackitOpContext };
|
|
15
15
|
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "stackit-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "STACKIT",
|
|
24
|
+
service: "Cdn",
|
|
25
|
+
labels: "stackit",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
16
29
|
export class BadRequest
|
|
17
30
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
31
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -51,9 +64,9 @@ export type HttpBackendCreateOriginRequestHeadersMap = { [key: string]: string |
|
|
|
51
64
|
export type HttpBackendCreateType = "http";
|
|
52
65
|
export interface HttpBackendCreate {
|
|
53
66
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
54
|
-
geofencing?: HttpBackendCreateGeofencingMap;
|
|
67
|
+
geofencing?: HttpBackendCreateGeofencingMap | undefined;
|
|
55
68
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
56
|
-
originRequestHeaders?: HttpBackendCreateOriginRequestHeadersMap;
|
|
69
|
+
originRequestHeaders?: HttpBackendCreateOriginRequestHeadersMap | undefined;
|
|
57
70
|
/** The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` */
|
|
58
71
|
originUrl: string;
|
|
59
72
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
@@ -87,11 +100,11 @@ export type CacheConfigCreateQueryStringVaryParametersList = Array<string>;
|
|
|
87
100
|
/** Groups the cache options that influence how the CDN builds its cache key on distribution creation. **Cache cardinality warning:** enabling query-string vary produces one cache entry per unique query-string combination (**unbounded** when `queryStringVaryParameters` is empty). Each entry in `cacheKeyHeaders` multiplies the number of cache variants by the number of distinct values observed for that header. Use these settings sparingly. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled` so that this feature can be toggled on and off without losing the configured allowlist. Only `queryStringVaryEnabled` gates whether the parameter allowlist actually varies the cache. **Optimizer interaction:** when the Optimizer is enabled, the CDN automatically enables query-string vary for image responses regardless of this setting. */
|
|
88
101
|
export interface CacheConfigCreate {
|
|
89
102
|
/** HTTP request header names whose values participate in the cache key. Each entry multiplies the number of cache variants by the number of distinct values observed for that header. */
|
|
90
|
-
cacheKeyHeaders?: CacheConfigCreateCacheKeyHeadersList;
|
|
103
|
+
cacheKeyHeaders?: CacheConfigCreateCacheKeyHeadersList | undefined;
|
|
91
104
|
/** When true, the CDN varies its cache by the request query string. If `queryStringVaryParameters` is empty, every unique query-string combination produces its own cache entry; if non-empty, only the listed parameters influence the cache key. */
|
|
92
|
-
queryStringVaryEnabled?: boolean;
|
|
105
|
+
queryStringVaryEnabled?: boolean | undefined;
|
|
93
106
|
/** Allowlist of query-string parameter names that participate in the cache key when `queryStringVaryEnabled` is true. Ignored while `queryStringVaryEnabled` is false, but still stored so it can be re-activated without losing the list. */
|
|
94
|
-
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList;
|
|
107
|
+
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList | undefined;
|
|
95
108
|
}
|
|
96
109
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
97
110
|
export type CreateDistributionRequestLabelsMap = { [key: string]: string | undefined };
|
|
@@ -157,7 +170,7 @@ export type MatchCondition = "ANY" | "ALL" | "NONE";
|
|
|
157
170
|
export type MatcherValuesList = Array<string>;
|
|
158
171
|
/** A matcher containing a list of string values to compare against the request path. */
|
|
159
172
|
export interface Matcher {
|
|
160
|
-
valueMatchCondition?: MatchCondition | (string & {});
|
|
173
|
+
valueMatchCondition?: MatchCondition | (string & {}) | undefined;
|
|
161
174
|
/** A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/*" or "*\/img/*" */
|
|
162
175
|
values: MatcherValuesList;
|
|
163
176
|
}
|
|
@@ -168,12 +181,12 @@ export type RedirectRuleStatusCode = 301 | 302 | 303 | 307 | 308;
|
|
|
168
181
|
/** A single redirect rule defining a source pattern and a target URL. */
|
|
169
182
|
export interface RedirectRule {
|
|
170
183
|
/** An optional description for the redirect rule. */
|
|
171
|
-
description?: string;
|
|
184
|
+
description?: string | undefined;
|
|
172
185
|
/** A toggle to enable or disable the redirect rule. */
|
|
173
|
-
enabled?: boolean;
|
|
186
|
+
enabled?: boolean | undefined;
|
|
174
187
|
/** A list of matchers that define when this rule should apply. At least one matcher is required. */
|
|
175
188
|
matchers: RedirectRuleMatchersList;
|
|
176
|
-
ruleMatchCondition?: MatchCondition | (string & {});
|
|
189
|
+
ruleMatchCondition?: MatchCondition | (string & {}) | undefined;
|
|
177
190
|
/** The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308. */
|
|
178
191
|
statusCode: RedirectRuleStatusCode | (number & {});
|
|
179
192
|
/** The target URL to redirect to. Must be a valid URI. */
|
|
@@ -184,7 +197,7 @@ export type RedirectConfigRulesList = Array<RedirectRule>;
|
|
|
184
197
|
/** A wrapper for a list of redirect rules that allows for redirect settings on a distribution. */
|
|
185
198
|
export interface RedirectConfig {
|
|
186
199
|
/** A list of redirect rules. The order of rules matters for evaluation. */
|
|
187
|
-
rules?: RedirectConfigRulesList;
|
|
200
|
+
rules?: RedirectConfigRulesList | undefined;
|
|
188
201
|
}
|
|
189
202
|
/** The following regions exist: - `EU` - Europe - `US` - United States / North America - `AF` - Africa - `SA` - South America - `ASIA` - Asia and Oceania */
|
|
190
203
|
export type Region = "EU" | "US" | "AF" | "SA" | "ASIA";
|
|
@@ -229,30 +242,30 @@ export type WafType = "FREE" | "PREMIUM";
|
|
|
229
242
|
/** Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. */
|
|
230
243
|
export interface WafConfig {
|
|
231
244
|
/** This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards */
|
|
232
|
-
allowedHttpMethods?: WafConfigAllowedHttpMethodsList;
|
|
233
|
-
allowedHttpVersions?: WafConfigAllowedHttpVersionsList;
|
|
245
|
+
allowedHttpMethods?: WafConfigAllowedHttpMethodsList | undefined;
|
|
246
|
+
allowedHttpVersions?: WafConfigAllowedHttpVersionsList | undefined;
|
|
234
247
|
/** This allow list restricts which Content-Type headers are accepted in request bodies. Format: Must be `type/subtype` with no spaces. Common content types: - `application/json` - `application/x-www-form-urlencoded` - `multipart/form-data` - `text/html` - `text/plain` - `application/xml` */
|
|
235
|
-
allowedRequestContentTypes?: WafConfigAllowedRequestContentTypesList;
|
|
248
|
+
allowedRequestContentTypes?: WafConfigAllowedRequestContentTypesList | undefined;
|
|
236
249
|
/** Ids of WAF Collections to mark as disabled */
|
|
237
|
-
disabledRuleCollectionIds?: WafConfigDisabledRuleCollectionIdsList;
|
|
250
|
+
disabledRuleCollectionIds?: WafConfigDisabledRuleCollectionIdsList | undefined;
|
|
238
251
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
239
|
-
disabledRuleGroupIds?: WafConfigDisabledRuleGroupIdsList;
|
|
252
|
+
disabledRuleGroupIds?: WafConfigDisabledRuleGroupIdsList | undefined;
|
|
240
253
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
241
|
-
disabledRuleIds?: WafConfigDisabledRuleIdsList;
|
|
254
|
+
disabledRuleIds?: WafConfigDisabledRuleIdsList | undefined;
|
|
242
255
|
/** Ids of WAF Collections to mark as enabled */
|
|
243
|
-
enabledRuleCollectionIds?: WafConfigEnabledRuleCollectionIdsList;
|
|
256
|
+
enabledRuleCollectionIds?: WafConfigEnabledRuleCollectionIdsList | undefined;
|
|
244
257
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
245
|
-
enabledRuleGroupIds?: WafConfigEnabledRuleGroupIdsList;
|
|
258
|
+
enabledRuleGroupIds?: WafConfigEnabledRuleGroupIdsList | undefined;
|
|
246
259
|
/** Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. */
|
|
247
260
|
enabledRuleIds: WafConfigEnabledRuleIdsList;
|
|
248
261
|
/** Ids of WAF Collections to mark as log Only. */
|
|
249
|
-
logOnlyRuleCollectionIds?: WafConfigLogOnlyRuleCollectionIdsList;
|
|
262
|
+
logOnlyRuleCollectionIds?: WafConfigLogOnlyRuleCollectionIdsList | undefined;
|
|
250
263
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
251
|
-
logOnlyRuleGroupIds?: WafConfigLogOnlyRuleGroupIdsList;
|
|
264
|
+
logOnlyRuleGroupIds?: WafConfigLogOnlyRuleGroupIdsList | undefined;
|
|
252
265
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
253
|
-
logOnlyRuleIds?: WafConfigLogOnlyRuleIdsList;
|
|
266
|
+
logOnlyRuleIds?: WafConfigLogOnlyRuleIdsList | undefined;
|
|
254
267
|
mode: WafMode | (string & {});
|
|
255
|
-
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
268
|
+
paranoiaLevel?: WafParanoiaLevel | (string & {}) | undefined;
|
|
256
269
|
type: WafType | (string & {});
|
|
257
270
|
}
|
|
258
271
|
export interface CreateDistributionRequest {
|
|
@@ -261,29 +274,29 @@ export interface CreateDistributionRequest {
|
|
|
261
274
|
/** Configuration for the content origin backend. */
|
|
262
275
|
backend: CreateDistributionRequestBackend;
|
|
263
276
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
264
|
-
blockedCountries?: CreateDistributionRequestBlockedCountriesList;
|
|
277
|
+
blockedCountries?: CreateDistributionRequestBlockedCountriesList | undefined;
|
|
265
278
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
266
|
-
blockedIps?: CreateDistributionRequestBlockedIpsList;
|
|
267
|
-
cacheConfig?: CacheConfigCreate;
|
|
279
|
+
blockedIps?: CreateDistributionRequestBlockedIpsList | undefined;
|
|
280
|
+
cacheConfig?: CacheConfigCreate | undefined;
|
|
268
281
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
269
|
-
defaultCacheDuration?: string;
|
|
282
|
+
defaultCacheDuration?: string | undefined;
|
|
270
283
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
271
|
-
forwardHostHeader?: boolean;
|
|
284
|
+
forwardHostHeader?: boolean | undefined;
|
|
272
285
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
273
|
-
intentId?: string;
|
|
286
|
+
intentId?: string | undefined;
|
|
274
287
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
275
|
-
labels?: CreateDistributionRequestLabelsMap;
|
|
276
|
-
logSink?: CreateDistributionRequestLogSink;
|
|
288
|
+
labels?: CreateDistributionRequestLabelsMap | undefined;
|
|
289
|
+
logSink?: CreateDistributionRequestLogSink | undefined;
|
|
277
290
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
278
|
-
monthlyLimitBytes?: number;
|
|
279
|
-
optimizer?: Optimizer;
|
|
280
|
-
redirects?: RedirectConfig;
|
|
291
|
+
monthlyLimitBytes?: number | undefined;
|
|
292
|
+
optimizer?: Optimizer | undefined;
|
|
293
|
+
redirects?: RedirectConfig | undefined;
|
|
281
294
|
/** Define in which regions you would like your content to be cached. */
|
|
282
295
|
regions: CreateDistributionRequestRegionsList;
|
|
283
296
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
284
|
-
stripResponseCookies?: boolean;
|
|
285
|
-
tls?: TlsConfig;
|
|
286
|
-
waf?: WafConfig;
|
|
297
|
+
stripResponseCookies?: boolean | undefined;
|
|
298
|
+
tls?: TlsConfig | undefined;
|
|
299
|
+
waf?: WafConfig | undefined;
|
|
287
300
|
}
|
|
288
301
|
export type HttpBackendGeofencingValueList = Array<string>;
|
|
289
302
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
@@ -360,16 +373,16 @@ export interface Config {
|
|
|
360
373
|
blockedIps: ConfigBlockedIpsList;
|
|
361
374
|
cacheConfig: CacheConfig;
|
|
362
375
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
363
|
-
defaultCacheDuration?: string | null;
|
|
376
|
+
defaultCacheDuration?: string | null | undefined;
|
|
364
377
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
365
378
|
forwardHostHeader: boolean;
|
|
366
379
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
367
|
-
labels?: ConfigLabelsMap;
|
|
368
|
-
logSink?: ConfigLogSink;
|
|
380
|
+
labels?: ConfigLabelsMap | undefined;
|
|
381
|
+
logSink?: ConfigLogSink | undefined;
|
|
369
382
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
370
|
-
monthlyLimitBytes?: number | null;
|
|
371
|
-
optimizer?: Optimizer;
|
|
372
|
-
redirects?: RedirectConfig;
|
|
383
|
+
monthlyLimitBytes?: number | null | undefined;
|
|
384
|
+
optimizer?: Optimizer | undefined;
|
|
385
|
+
redirects?: RedirectConfig | undefined;
|
|
373
386
|
regions: ConfigRegionsList;
|
|
374
387
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
375
388
|
stripResponseCookies: boolean;
|
|
@@ -387,7 +400,7 @@ export type StatusErrorKey =
|
|
|
387
400
|
| "EXTERNAL_QUOTA_REACHED";
|
|
388
401
|
export interface StatusError {
|
|
389
402
|
/** A german translation string corresponding to the error key. Note that we do not guarantee german translations are present. */
|
|
390
|
-
de?: string;
|
|
403
|
+
de?: string | undefined;
|
|
391
404
|
/** An english translation string corresponding to the error key. An english translation key is always present. */
|
|
392
405
|
en: string;
|
|
393
406
|
/** An enum value that describes a Status Error. */
|
|
@@ -403,7 +416,7 @@ export type DomainType = "managed" | "custom";
|
|
|
403
416
|
export interface Domain {
|
|
404
417
|
certificateType: DomainCertificateType;
|
|
405
418
|
/** This object is present if the custom domain has errors. */
|
|
406
|
-
errors?: DomainErrorsList;
|
|
419
|
+
errors?: DomainErrorsList | undefined;
|
|
407
420
|
/** The domain. If this is a custom domain, you can call the GetCustomDomain Endpoint */
|
|
408
421
|
name: string;
|
|
409
422
|
status: DomainStatus;
|
|
@@ -471,7 +484,7 @@ export interface Distribution {
|
|
|
471
484
|
createdAt: string;
|
|
472
485
|
domains: DistributionDomainsList;
|
|
473
486
|
/** This object may be present if, and only if the distribution has encountered an error state. */
|
|
474
|
-
errors?: DistributionErrorsList;
|
|
487
|
+
errors?: DistributionErrorsList | undefined;
|
|
475
488
|
id: string;
|
|
476
489
|
projectId: string;
|
|
477
490
|
/** - `CREATING`: The distribution was just created. All the relevant resources are created in the background. Once fully reconciled, this switches to `ACTIVE`. If there are any issues, the status changes to `ERROR`. You can look at the `errors` array to get more infos. - `ACTIVE`: The usual state. The desired configuration is synced, there are no errors - `UPDATING`: The state when there is a discrepancy between the desired and actual configuration state. This occurs right after an update. Will switch to `ACTIVE` or `ERROR`, depending on if synchronizing succeeds or not. - `DELETING`: The state right after a delete request was received. The distribution will stay in this status until all resources have been successfully removed, or until we encounter an `ERROR` state. **NOTE:** You can keep fetching the distribution while it is deleting. After successful deletion, trying to get a distribution will return a 404 Not Found response - `ERROR`: The error state. Look at the `errors` array for more info. */
|
|
@@ -479,7 +492,7 @@ export interface Distribution {
|
|
|
479
492
|
/** RFC3339 string which returns the last time the distribution configuration was modified. */
|
|
480
493
|
updatedAt: string;
|
|
481
494
|
/** For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** */
|
|
482
|
-
waf?: DistributionWaf;
|
|
495
|
+
waf?: DistributionWaf | undefined;
|
|
483
496
|
}
|
|
484
497
|
export interface CreateDistributionResponse {
|
|
485
498
|
distribution: Distribution;
|
|
@@ -489,31 +502,31 @@ export interface DeleteCustomDomainRequest {
|
|
|
489
502
|
projectId: string;
|
|
490
503
|
distributionId: string;
|
|
491
504
|
domain: string;
|
|
492
|
-
intentId?: string;
|
|
505
|
+
intentId?: string | undefined;
|
|
493
506
|
}
|
|
494
507
|
/** This object is present if the custom domain has errors. */
|
|
495
508
|
export type CustomDomainErrorsList = Array<StatusError>;
|
|
496
509
|
/** Definition of a custom domain */
|
|
497
510
|
export interface CustomDomain {
|
|
498
511
|
/** This object is present if the custom domain has errors. */
|
|
499
|
-
errors?: CustomDomainErrorsList;
|
|
512
|
+
errors?: CustomDomainErrorsList | undefined;
|
|
500
513
|
/** The domain. Can be used as input for the GetCustomDomain endpoint */
|
|
501
514
|
name: string;
|
|
502
515
|
status: DomainStatus;
|
|
503
516
|
}
|
|
504
517
|
/** Returns the custom domain that was deleted while the deletion has not completed yet. After the deletion was successful the response will be empty. */
|
|
505
518
|
export interface DeleteCustomDomainResponse {
|
|
506
|
-
customDomain?: CustomDomain;
|
|
519
|
+
customDomain?: CustomDomain | undefined;
|
|
507
520
|
}
|
|
508
521
|
export interface DeleteDistributionRequest {
|
|
509
522
|
/** Your STACKIT Project Id */
|
|
510
523
|
projectId: string;
|
|
511
524
|
distributionId: string;
|
|
512
525
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. */
|
|
513
|
-
intentId?: string;
|
|
526
|
+
intentId?: string | undefined;
|
|
514
527
|
}
|
|
515
528
|
export interface DeleteDistributionResponse {
|
|
516
|
-
distribution?: Distribution;
|
|
529
|
+
distribution?: Distribution | undefined;
|
|
517
530
|
}
|
|
518
531
|
export interface FindCachePathsRequest {
|
|
519
532
|
/** Your STACKIT Project Id */
|
|
@@ -534,7 +547,7 @@ export interface GetCacheInfoRequest {
|
|
|
534
547
|
/** Your STACKIT Project Id */
|
|
535
548
|
projectId: string;
|
|
536
549
|
distributionId: string;
|
|
537
|
-
purgePath?: string;
|
|
550
|
+
purgePath?: string | undefined;
|
|
538
551
|
}
|
|
539
552
|
export type GetCacheInfoResponseHistoryEntryType = "full" | "granular";
|
|
540
553
|
export interface GetCacheInfoResponseHistoryEntry {
|
|
@@ -577,7 +590,7 @@ export interface GetDistributionRequest {
|
|
|
577
590
|
projectId: string;
|
|
578
591
|
distributionId: string;
|
|
579
592
|
/** If set, the top level of a distribution contains a `waf` property, which defines the status of the waf. This includes a list of all resolved rules. */
|
|
580
|
-
withWafStatus?: boolean;
|
|
593
|
+
withWafStatus?: boolean | undefined;
|
|
581
594
|
}
|
|
582
595
|
export interface GetDistributionResponse {
|
|
583
596
|
distribution: Distribution;
|
|
@@ -600,26 +613,26 @@ export interface GetLogsRequest {
|
|
|
600
613
|
/** Your CDN distribution Id */
|
|
601
614
|
distributionId: string;
|
|
602
615
|
/** the start of the time range for which logs should be returned */
|
|
603
|
-
from?: string;
|
|
616
|
+
from?: string | undefined;
|
|
604
617
|
/** the end of the time range for which logs should be returned. If not specified, "now" is used. */
|
|
605
|
-
to?: string;
|
|
618
|
+
to?: string | undefined;
|
|
606
619
|
/** Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) */
|
|
607
|
-
pageSize?: number;
|
|
620
|
+
pageSize?: number | undefined;
|
|
608
621
|
/** Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get "pushed" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. */
|
|
609
|
-
pageIdentifier?: string;
|
|
622
|
+
pageIdentifier?: string | undefined;
|
|
610
623
|
/** Sorts the log messages by a specific field. Defaults to `timestamp`. Supported sort options: - `timestamp` - `dataCenterRegion` - `requestCountryCode` - `statusCode` - `cacheHit` - `size` - `path` - `host` */
|
|
611
|
-
sortBy?: GetLogsRequestSortBy | (string & {});
|
|
612
|
-
sortOrder?: GetLogsRequestSortOrder | (string & {});
|
|
624
|
+
sortBy?: GetLogsRequestSortBy | (string & {}) | undefined;
|
|
625
|
+
sortOrder?: GetLogsRequestSortOrder | (string & {}) | undefined;
|
|
613
626
|
/** If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked */
|
|
614
|
-
wafAction?: WAFRuleAction | (string & {});
|
|
627
|
+
wafAction?: WAFRuleAction | (string & {}) | undefined;
|
|
615
628
|
/** Filters by the CDN data center region that served the request. Can be combined with other filters */
|
|
616
|
-
dataCenterRegion?: string;
|
|
629
|
+
dataCenterRegion?: string | undefined;
|
|
617
630
|
/** Filters by the originating country of the user request. Can be combined with other filters */
|
|
618
|
-
requestCountryCode?: string;
|
|
631
|
+
requestCountryCode?: string | undefined;
|
|
619
632
|
/** Filters by the HTTP status code returned to the client. Can be combined with other filters */
|
|
620
|
-
statusCode?: number;
|
|
633
|
+
statusCode?: number | undefined;
|
|
621
634
|
/** Filters based on whether the request was served from the CDN cache. Can be combined with other filters */
|
|
622
|
-
cacheHit?: boolean;
|
|
635
|
+
cacheHit?: boolean | undefined;
|
|
623
636
|
}
|
|
624
637
|
export type WAFViolationRequestHeadersMap = { [key: string]: string | undefined };
|
|
625
638
|
/** Information about a violated WAF rule in case the WAF is enabled and a rule was triggered (either in BLOCK or LOG_ONLY mode) */
|
|
@@ -646,12 +659,12 @@ export interface DistributionLogsRecord {
|
|
|
646
659
|
size: number;
|
|
647
660
|
statusCode: number;
|
|
648
661
|
timestamp: string;
|
|
649
|
-
wafViolation?: WAFViolation;
|
|
662
|
+
wafViolation?: WAFViolation | undefined;
|
|
650
663
|
}
|
|
651
664
|
export type GetLogsResponseLogsList = Array<DistributionLogsRecord>;
|
|
652
665
|
export interface GetLogsResponse {
|
|
653
666
|
logs: GetLogsResponseLogsList;
|
|
654
|
-
nextPageIdentifier?: string;
|
|
667
|
+
nextPageIdentifier?: string | undefined;
|
|
655
668
|
}
|
|
656
669
|
export interface GetLogsSearchFiltersRequest {
|
|
657
670
|
/** Your STACKIT Project ID. */
|
|
@@ -659,7 +672,7 @@ export interface GetLogsSearchFiltersRequest {
|
|
|
659
672
|
/** Your CDN distribution ID. */
|
|
660
673
|
distributionId: string;
|
|
661
674
|
/** Optional search string. Will search the **values** for the text input. */
|
|
662
|
-
filter?: string;
|
|
675
|
+
filter?: string | undefined;
|
|
663
676
|
}
|
|
664
677
|
export type GetLogsSearchFiltersResponseCacheItem = "HIT" | "MISS";
|
|
665
678
|
export type GetLogsSearchFiltersResponseCacheList = Array<GetLogsSearchFiltersResponseCacheItem>;
|
|
@@ -706,9 +719,9 @@ export interface GetStatisticsRequest {
|
|
|
706
719
|
/** the start of the time range for which statistics should be returned */
|
|
707
720
|
from: string;
|
|
708
721
|
/** the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. */
|
|
709
|
-
to?: string;
|
|
722
|
+
to?: string | undefined;
|
|
710
723
|
/** Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` */
|
|
711
|
-
interval?: GetStatisticsRequestInterval | (string & {});
|
|
724
|
+
interval?: GetStatisticsRequestInterval | (string & {}) | undefined;
|
|
712
725
|
}
|
|
713
726
|
export interface DistributionStatisticsRecordEntry {
|
|
714
727
|
/** Number of cached requests that were served */
|
|
@@ -756,19 +769,19 @@ export interface ListDistributionsRequest {
|
|
|
756
769
|
/** Your STACKIT Project Id */
|
|
757
770
|
projectId: string;
|
|
758
771
|
/** Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) */
|
|
759
|
-
pageSize?: number;
|
|
772
|
+
pageSize?: number | undefined;
|
|
760
773
|
/** If set, the top level of a distribution contains a `waf` property, which defines the status of the waf. This includes a list of all resolved rules. */
|
|
761
|
-
withWafStatus?: boolean;
|
|
774
|
+
withWafStatus?: boolean | undefined;
|
|
762
775
|
/** Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get "pushed" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. */
|
|
763
|
-
pageIdentifier?: string;
|
|
776
|
+
pageIdentifier?: string | undefined;
|
|
764
777
|
/** The following sort options exist. We default to `createdAt` - `id` - Sort by distribution Id using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originUrl using String comparison - `status` - Sort by distribution status, using String comparison - `originUrlRelated` - The originUrl is segmented and reversed before sorting. E.g. `www.example.com` is converted to `com.example.www` for sorting. This way, distributions pointing to the same domain trees are grouped next to each other. */
|
|
765
|
-
sortBy?: ListDistributionsRequestSortBy | (string & {});
|
|
766
|
-
sortOrder?: ListDistributionsRequestSortOrder | (string & {});
|
|
778
|
+
sortBy?: ListDistributionsRequestSortBy | (string & {}) | undefined;
|
|
779
|
+
sortOrder?: ListDistributionsRequestSortOrder | (string & {}) | undefined;
|
|
767
780
|
}
|
|
768
781
|
export type ListDistributionsResponseDistributionsList = Array<Distribution>;
|
|
769
782
|
export interface ListDistributionsResponse {
|
|
770
783
|
distributions: ListDistributionsResponseDistributionsList;
|
|
771
|
-
nextPageIdentifier?: string;
|
|
784
|
+
nextPageIdentifier?: string | undefined;
|
|
772
785
|
}
|
|
773
786
|
export interface ListWafCollectionsRequest {
|
|
774
787
|
/** Your STACKIT Project Id */
|
|
@@ -778,7 +791,7 @@ export interface ListWafCollectionsRequest {
|
|
|
778
791
|
export type LocalizedString = { [key: string]: string | undefined };
|
|
779
792
|
export interface WafRule {
|
|
780
793
|
/** Optional CoreRuleSet rule Id in case this is a CRS rule */
|
|
781
|
-
code?: string;
|
|
794
|
+
code?: string | undefined;
|
|
782
795
|
description: LocalizedString;
|
|
783
796
|
id: string;
|
|
784
797
|
}
|
|
@@ -810,11 +823,11 @@ export type HttpBackendPatchType = "http";
|
|
|
810
823
|
/** A partial HTTP Backend */
|
|
811
824
|
export interface HttpBackendPatch {
|
|
812
825
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
813
|
-
geofencing?: HttpBackendPatchGeofencingMap;
|
|
826
|
+
geofencing?: HttpBackendPatchGeofencingMap | undefined;
|
|
814
827
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
815
|
-
originRequestHeaders?: HttpBackendPatchOriginRequestHeadersMap;
|
|
828
|
+
originRequestHeaders?: HttpBackendPatchOriginRequestHeadersMap | undefined;
|
|
816
829
|
/** The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` */
|
|
817
|
-
originUrl?: string;
|
|
830
|
+
originUrl?: string | undefined;
|
|
818
831
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
819
832
|
type: HttpBackendPatchType;
|
|
820
833
|
}
|
|
@@ -822,10 +835,10 @@ export interface HttpBackendPatch {
|
|
|
822
835
|
export type BucketBackendPatchType = "bucket";
|
|
823
836
|
export interface BucketBackendPatch {
|
|
824
837
|
/** The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`). */
|
|
825
|
-
bucketUrl?: string;
|
|
826
|
-
credentials?: BucketCredentials;
|
|
838
|
+
bucketUrl?: string | undefined;
|
|
839
|
+
credentials?: BucketCredentials | undefined;
|
|
827
840
|
/** The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT). */
|
|
828
|
-
region?: string;
|
|
841
|
+
region?: string | undefined;
|
|
829
842
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
830
843
|
type: BucketBackendPatchType;
|
|
831
844
|
}
|
|
@@ -841,20 +854,20 @@ export type CacheConfigPatchQueryStringVaryParametersList = Array<string>;
|
|
|
841
854
|
/** PATCH variant of `CacheConfig`. Follows the standard PATCH conventions for this API: - Field omitted from the request: current value is left unchanged. - Array field sent as `[]`: current list is cleared. - `queryStringVaryEnabled` is a plain boolean (non-nullable); omit it to leave unchanged. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled`. Sending a non-empty `queryStringVaryParameters` together with `queryStringVaryEnabled=false` is accepted: the list is persisted for later re-activation but does not affect the cache while the flag is false. */
|
|
842
855
|
export interface CacheConfigPatch {
|
|
843
856
|
/** HTTP request header names that participate in the cache key. Omit to leave unchanged; send `[]` to clear. */
|
|
844
|
-
cacheKeyHeaders?: CacheConfigPatchCacheKeyHeadersList;
|
|
857
|
+
cacheKeyHeaders?: CacheConfigPatchCacheKeyHeadersList | undefined;
|
|
845
858
|
/** When true, the CDN varies its cache by the request query string. Omit to leave unchanged. */
|
|
846
|
-
queryStringVaryEnabled?: boolean;
|
|
859
|
+
queryStringVaryEnabled?: boolean | undefined;
|
|
847
860
|
/** Allowlist of query-string parameter names. Omit to leave unchanged; send `[]` to clear. */
|
|
848
|
-
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList;
|
|
861
|
+
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList | undefined;
|
|
849
862
|
}
|
|
850
863
|
/** Labels are key-value string pairs that can be attached to a distribution. JSON Merge Patch is supported, meaning setting a key to null will remove it. */
|
|
851
864
|
export type ConfigPatchLabelsMap = { [key: string]: string | null | undefined };
|
|
852
865
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
853
866
|
export type LokiLogSinkPatchType = "loki";
|
|
854
867
|
export interface LokiLogSinkPatch {
|
|
855
|
-
credentials?: LokiLogSinkCredentials;
|
|
868
|
+
credentials?: LokiLogSinkCredentials | undefined;
|
|
856
869
|
/** The fully qualified URL where the CDN should push logs to your Loki instance (for example, `https://loki.example.com/loki/api/v1/push`). */
|
|
857
|
-
pushUrl?: string;
|
|
870
|
+
pushUrl?: string | undefined;
|
|
858
871
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
859
872
|
type: LokiLogSinkPatchType;
|
|
860
873
|
}
|
|
@@ -866,23 +879,23 @@ export type OtlpLogSinkPatchCredentials =
|
|
|
866
879
|
export type OtlpLogSinkPatchType = "otlp";
|
|
867
880
|
export interface OtlpLogSinkPatch {
|
|
868
881
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
869
|
-
credentials?: OtlpLogSinkPatchCredentials;
|
|
882
|
+
credentials?: OtlpLogSinkPatchCredentials | undefined;
|
|
870
883
|
/** The fully qualified URL where the CDN should push logs to your OTLP endpoint (for example, `https://otlp.example.com/otlp/v1/logs`). */
|
|
871
|
-
pushUrl?: string;
|
|
884
|
+
pushUrl?: string | undefined;
|
|
872
885
|
/** Defines the type of the log sink. */
|
|
873
886
|
type: OtlpLogSinkPatchType;
|
|
874
887
|
}
|
|
875
888
|
export type ConfigPatchLogSink = LokiLogSinkPatch | OtlpLogSinkPatch;
|
|
876
889
|
export interface OptimizerPatch {
|
|
877
|
-
enabled?: boolean;
|
|
890
|
+
enabled?: boolean | undefined;
|
|
878
891
|
}
|
|
879
892
|
export type ConfigPatchRegionsList = Array<Region | (string & {})>;
|
|
880
893
|
/** Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. */
|
|
881
894
|
export interface TlsConfigPatch {
|
|
882
895
|
/** If set to true, the distribution will accept connections using TLS 1.0. */
|
|
883
|
-
enableTls10?: boolean;
|
|
896
|
+
enableTls10?: boolean | undefined;
|
|
884
897
|
/** If set to true, the distribution will accept connections using TLS 1.1. */
|
|
885
|
-
enableTls11?: boolean;
|
|
898
|
+
enableTls11?: boolean | undefined;
|
|
886
899
|
}
|
|
887
900
|
export type WafConfigPatchAllowedHttpMethodsList = Array<string>;
|
|
888
901
|
export type WafConfigPatchAllowedHttpVersionsList = Array<string>;
|
|
@@ -907,62 +920,62 @@ export type WafConfigPatchLogOnlyRuleGroupIdsList = Array<string>;
|
|
|
907
920
|
export type WafConfigPatchLogOnlyRuleIdsList = Array<string>;
|
|
908
921
|
/** Modify the WAF Configuration ## WAF Rules You can modify the set of enabled, disabled and log-only Rules by modifying these 9 properties: - enabledRuleIds - disabledRuleIds - logOnlyRuleIds - enabledRuleGroupIds - disabledRuleGroupIds - logOnlyRuleGroupIds - enabledRuleCollectionIds - disabledRuleCollectionIds - logOnlyRuleCollectionIds Please inquire the `WafConfig` Description on how the effective configuration is determined. For patching, if an ID is already used in one of the properties, it will be removed (and effectively moved) to the new property. If patching multiple properties with the same ID (e.g. writing `@builtin/crs/response` to `logOnlyRuleCollectionIds` and `enabledRuleCollectionIds`), the request will be rejected with a 400. */
|
|
909
922
|
export interface WafConfigPatch {
|
|
910
|
-
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList;
|
|
911
|
-
allowedHttpVersions?: WafConfigPatchAllowedHttpVersionsList;
|
|
912
|
-
allowedRequestContentTypes?: WafConfigPatchAllowedRequestContentTypesList;
|
|
923
|
+
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList | undefined;
|
|
924
|
+
allowedHttpVersions?: WafConfigPatchAllowedHttpVersionsList | undefined;
|
|
925
|
+
allowedRequestContentTypes?: WafConfigPatchAllowedRequestContentTypesList | undefined;
|
|
913
926
|
/** Ids of WAF Collections to mark as disabled */
|
|
914
|
-
disabledRuleCollectionIds?: WafConfigPatchDisabledRuleCollectionIdsList;
|
|
927
|
+
disabledRuleCollectionIds?: WafConfigPatchDisabledRuleCollectionIdsList | undefined;
|
|
915
928
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
916
|
-
disabledRuleGroupIds?: WafConfigPatchDisabledRuleGroupIdsList;
|
|
929
|
+
disabledRuleGroupIds?: WafConfigPatchDisabledRuleGroupIdsList | undefined;
|
|
917
930
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
918
|
-
disabledRuleIds?: WafConfigPatchDisabledRuleIdsList;
|
|
931
|
+
disabledRuleIds?: WafConfigPatchDisabledRuleIdsList | undefined;
|
|
919
932
|
/** Ids of WAF Collections to mark as enabled */
|
|
920
|
-
enabledRuleCollectionIds?: WafConfigPatchEnabledRuleCollectionIdsList;
|
|
933
|
+
enabledRuleCollectionIds?: WafConfigPatchEnabledRuleCollectionIdsList | undefined;
|
|
921
934
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
922
|
-
enabledRuleGroupIds?: WafConfigPatchEnabledRuleGroupIdsList;
|
|
935
|
+
enabledRuleGroupIds?: WafConfigPatchEnabledRuleGroupIdsList | undefined;
|
|
923
936
|
/** Ids of WAF Rules that are **explicitly** enabled for this distribution. */
|
|
924
|
-
enabledRuleIds?: WafConfigPatchEnabledRuleIdsList;
|
|
937
|
+
enabledRuleIds?: WafConfigPatchEnabledRuleIdsList | undefined;
|
|
925
938
|
/** Ids of WAF Collections to mark as log Only. */
|
|
926
|
-
logOnlyRuleCollectionIds?: WafConfigPatchLogOnlyRuleCollectionIdsList;
|
|
939
|
+
logOnlyRuleCollectionIds?: WafConfigPatchLogOnlyRuleCollectionIdsList | undefined;
|
|
927
940
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
928
|
-
logOnlyRuleGroupIds?: WafConfigPatchLogOnlyRuleGroupIdsList;
|
|
941
|
+
logOnlyRuleGroupIds?: WafConfigPatchLogOnlyRuleGroupIdsList | undefined;
|
|
929
942
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
930
|
-
logOnlyRuleIds?: WafConfigPatchLogOnlyRuleIdsList;
|
|
931
|
-
mode?: WafMode | (string & {});
|
|
932
|
-
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
933
|
-
type?: WafType | (string & {});
|
|
943
|
+
logOnlyRuleIds?: WafConfigPatchLogOnlyRuleIdsList | undefined;
|
|
944
|
+
mode?: WafMode | (string & {}) | undefined;
|
|
945
|
+
paranoiaLevel?: WafParanoiaLevel | (string & {}) | undefined;
|
|
946
|
+
type?: WafType | (string & {}) | undefined;
|
|
934
947
|
}
|
|
935
948
|
export interface ConfigPatch {
|
|
936
|
-
backend?: ConfigPatchBackend;
|
|
949
|
+
backend?: ConfigPatchBackend | undefined;
|
|
937
950
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
938
|
-
blockedCountries?: ConfigPatchBlockedCountriesList;
|
|
951
|
+
blockedCountries?: ConfigPatchBlockedCountriesList | undefined;
|
|
939
952
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
940
|
-
blockedIps?: ConfigPatchBlockedIpsList;
|
|
941
|
-
cacheConfig?: CacheConfigPatch;
|
|
953
|
+
blockedIps?: ConfigPatchBlockedIpsList | undefined;
|
|
954
|
+
cacheConfig?: CacheConfigPatch | undefined;
|
|
942
955
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
943
|
-
defaultCacheDuration?: string | null;
|
|
956
|
+
defaultCacheDuration?: string | null | undefined;
|
|
944
957
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
945
|
-
forwardHostHeader?: boolean;
|
|
958
|
+
forwardHostHeader?: boolean | undefined;
|
|
946
959
|
/** Labels are key-value string pairs that can be attached to a distribution. JSON Merge Patch is supported, meaning setting a key to null will remove it. */
|
|
947
|
-
labels?: ConfigPatchLabelsMap;
|
|
948
|
-
logSink?: ConfigPatchLogSink | null;
|
|
960
|
+
labels?: ConfigPatchLabelsMap | undefined;
|
|
961
|
+
logSink?: ConfigPatchLogSink | null | undefined;
|
|
949
962
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
950
|
-
monthlyLimitBytes?: number | null;
|
|
951
|
-
optimizer?: OptimizerPatch;
|
|
952
|
-
redirects?: RedirectConfig;
|
|
953
|
-
regions?: ConfigPatchRegionsList;
|
|
963
|
+
monthlyLimitBytes?: number | null | undefined;
|
|
964
|
+
optimizer?: OptimizerPatch | undefined;
|
|
965
|
+
redirects?: RedirectConfig | undefined;
|
|
966
|
+
regions?: ConfigPatchRegionsList | undefined;
|
|
954
967
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
955
|
-
stripResponseCookies?: boolean;
|
|
956
|
-
tls?: TlsConfigPatch;
|
|
957
|
-
waf?: WafConfigPatch;
|
|
968
|
+
stripResponseCookies?: boolean | undefined;
|
|
969
|
+
tls?: TlsConfigPatch | undefined;
|
|
970
|
+
waf?: WafConfigPatch | undefined;
|
|
958
971
|
}
|
|
959
972
|
export interface PatchDistributionRequest {
|
|
960
973
|
/** Your STACKIT Project Id */
|
|
961
974
|
projectId: string;
|
|
962
975
|
distributionId: string;
|
|
963
|
-
config?: ConfigPatch;
|
|
976
|
+
config?: ConfigPatch | undefined;
|
|
964
977
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
965
|
-
intentId?: string;
|
|
978
|
+
intentId?: string | undefined;
|
|
966
979
|
}
|
|
967
980
|
export interface PatchDistributionResponse {
|
|
968
981
|
distribution: Distribution;
|
|
@@ -972,7 +985,7 @@ export interface PurgeCacheRequest {
|
|
|
972
985
|
projectId: string;
|
|
973
986
|
distributionId: string;
|
|
974
987
|
/** Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. */
|
|
975
|
-
path?: string;
|
|
988
|
+
path?: string | undefined;
|
|
976
989
|
}
|
|
977
990
|
export type PurgeCacheResponse2 = unknown;
|
|
978
991
|
/** This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you */
|
|
@@ -984,7 +997,7 @@ export interface PutCustomDomainCustomCertificate {
|
|
|
984
997
|
/** base64-encoded PEM encoded key */
|
|
985
998
|
key: string;
|
|
986
999
|
/** When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. */
|
|
987
|
-
skipDnsCheck?: boolean;
|
|
1000
|
+
skipDnsCheck?: boolean | undefined;
|
|
988
1001
|
type: string;
|
|
989
1002
|
}
|
|
990
1003
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
@@ -997,9 +1010,9 @@ export interface PutCustomDomainRequest {
|
|
|
997
1010
|
distributionId: string;
|
|
998
1011
|
domain: string;
|
|
999
1012
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1000
|
-
certificate?: PutCustomDomainRequestCertificate;
|
|
1013
|
+
certificate?: PutCustomDomainRequestCertificate | undefined;
|
|
1001
1014
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
1002
|
-
intentId?: string;
|
|
1015
|
+
intentId?: string | undefined;
|
|
1003
1016
|
}
|
|
1004
1017
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1005
1018
|
export type PutCustomDomainResponseCertificate =
|
|
@@ -1007,7 +1020,7 @@ export type PutCustomDomainResponseCertificate =
|
|
|
1007
1020
|
| GetCustomDomainCustomCertificate;
|
|
1008
1021
|
export interface PutCustomDomainResponse {
|
|
1009
1022
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1010
|
-
certificate?: PutCustomDomainResponseCertificate;
|
|
1023
|
+
certificate?: PutCustomDomainResponseCertificate | undefined;
|
|
1011
1024
|
customDomain: CustomDomain;
|
|
1012
1025
|
}
|
|
1013
1026
|
export type CreateDistributionError = BadRequest | UnprocessableEntity | StackitOpError;
|
|
@@ -1023,6 +1036,8 @@ export const createDistribution: API.OperationMethod<
|
|
|
1023
1036
|
errors: [BadRequest, UnprocessableEntity, UnknownStackitError],
|
|
1024
1037
|
protocol: StackitProtocol,
|
|
1025
1038
|
retry: Retry.Retry,
|
|
1039
|
+
telemetry: TELEMETRY,
|
|
1040
|
+
span: "CreateDistribution",
|
|
1026
1041
|
}));
|
|
1027
1042
|
|
|
1028
1043
|
export type DeleteCustomDomainError = UnprocessableEntity | StackitOpError;
|
|
@@ -1038,6 +1053,8 @@ export const deleteCustomDomain: API.OperationMethod<
|
|
|
1038
1053
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1039
1054
|
protocol: StackitProtocol,
|
|
1040
1055
|
retry: Retry.Retry,
|
|
1056
|
+
telemetry: TELEMETRY,
|
|
1057
|
+
span: "DeleteCustomDomain",
|
|
1041
1058
|
}));
|
|
1042
1059
|
|
|
1043
1060
|
export type DeleteDistributionError = UnprocessableEntity | StackitOpError;
|
|
@@ -1053,6 +1070,8 @@ export const deleteDistribution: API.OperationMethod<
|
|
|
1053
1070
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1054
1071
|
protocol: StackitProtocol,
|
|
1055
1072
|
retry: Retry.Retry,
|
|
1073
|
+
telemetry: TELEMETRY,
|
|
1074
|
+
span: "DeleteDistribution",
|
|
1056
1075
|
}));
|
|
1057
1076
|
|
|
1058
1077
|
export type FindCachePathsError = UnprocessableEntity | StackitOpError;
|
|
@@ -1068,6 +1087,8 @@ export const findCachePaths: API.OperationMethod<
|
|
|
1068
1087
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1069
1088
|
protocol: StackitProtocol,
|
|
1070
1089
|
retry: Retry.Retry,
|
|
1090
|
+
telemetry: TELEMETRY,
|
|
1091
|
+
span: "FindCachePaths",
|
|
1071
1092
|
}));
|
|
1072
1093
|
|
|
1073
1094
|
export type GetCacheInfoError = UnprocessableEntity | StackitOpError;
|
|
@@ -1083,6 +1104,8 @@ export const getCacheInfo: API.OperationMethod<
|
|
|
1083
1104
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1084
1105
|
protocol: StackitProtocol,
|
|
1085
1106
|
retry: Retry.Retry,
|
|
1107
|
+
telemetry: TELEMETRY,
|
|
1108
|
+
span: "GetCacheInfo",
|
|
1086
1109
|
}));
|
|
1087
1110
|
|
|
1088
1111
|
export type GetCustomDomainError = NotFound | UnprocessableEntity | StackitOpError;
|
|
@@ -1098,6 +1121,8 @@ export const getCustomDomain: API.OperationMethod<
|
|
|
1098
1121
|
errors: [NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1099
1122
|
protocol: StackitProtocol,
|
|
1100
1123
|
retry: Retry.Retry,
|
|
1124
|
+
telemetry: TELEMETRY,
|
|
1125
|
+
span: "GetCustomDomain",
|
|
1101
1126
|
}));
|
|
1102
1127
|
|
|
1103
1128
|
export type GetDistributionError = NotFound | UnprocessableEntity | StackitOpError;
|
|
@@ -1113,6 +1138,8 @@ export const getDistribution: API.OperationMethod<
|
|
|
1113
1138
|
errors: [NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1114
1139
|
protocol: StackitProtocol,
|
|
1115
1140
|
retry: Retry.Retry,
|
|
1141
|
+
telemetry: TELEMETRY,
|
|
1142
|
+
span: "GetDistribution",
|
|
1116
1143
|
}));
|
|
1117
1144
|
|
|
1118
1145
|
export type GetLogsError = UnprocessableEntity | StackitOpError;
|
|
@@ -1128,6 +1155,8 @@ export const getLogs: API.OperationMethod<
|
|
|
1128
1155
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1129
1156
|
protocol: StackitProtocol,
|
|
1130
1157
|
retry: Retry.Retry,
|
|
1158
|
+
telemetry: TELEMETRY,
|
|
1159
|
+
span: "GetLogs",
|
|
1131
1160
|
}));
|
|
1132
1161
|
|
|
1133
1162
|
export type GetLogsSearchFiltersError = BadRequest | UnprocessableEntity | StackitOpError;
|
|
@@ -1143,6 +1172,8 @@ export const getLogsSearchFilters: API.OperationMethod<
|
|
|
1143
1172
|
errors: [BadRequest, UnprocessableEntity, UnknownStackitError],
|
|
1144
1173
|
protocol: StackitProtocol,
|
|
1145
1174
|
retry: Retry.Retry,
|
|
1175
|
+
telemetry: TELEMETRY,
|
|
1176
|
+
span: "GetLogsSearchFilters",
|
|
1146
1177
|
}));
|
|
1147
1178
|
|
|
1148
1179
|
export type GetStatisticsError = UnprocessableEntity | StackitOpError;
|
|
@@ -1158,6 +1189,8 @@ export const getStatistics: API.OperationMethod<
|
|
|
1158
1189
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1159
1190
|
protocol: StackitProtocol,
|
|
1160
1191
|
retry: Retry.Retry,
|
|
1192
|
+
telemetry: TELEMETRY,
|
|
1193
|
+
span: "GetStatistics",
|
|
1161
1194
|
}));
|
|
1162
1195
|
|
|
1163
1196
|
export type ListDistributionsError = UnprocessableEntity | StackitOpError;
|
|
@@ -1173,6 +1206,8 @@ export const listDistributions: API.OperationMethod<
|
|
|
1173
1206
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1174
1207
|
protocol: StackitProtocol,
|
|
1175
1208
|
retry: Retry.Retry,
|
|
1209
|
+
telemetry: TELEMETRY,
|
|
1210
|
+
span: "ListDistributions",
|
|
1176
1211
|
}));
|
|
1177
1212
|
|
|
1178
1213
|
export type ListWafCollectionsError = UnprocessableEntity | StackitOpError;
|
|
@@ -1188,6 +1223,8 @@ export const listWafCollections: API.OperationMethod<
|
|
|
1188
1223
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1189
1224
|
protocol: StackitProtocol,
|
|
1190
1225
|
retry: Retry.Retry,
|
|
1226
|
+
telemetry: TELEMETRY,
|
|
1227
|
+
span: "ListWafCollections",
|
|
1191
1228
|
}));
|
|
1192
1229
|
|
|
1193
1230
|
export type PatchDistributionError = UnprocessableEntity | StackitOpError;
|
|
@@ -1203,6 +1240,8 @@ export const patchDistribution: API.OperationMethod<
|
|
|
1203
1240
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1204
1241
|
protocol: StackitProtocol,
|
|
1205
1242
|
retry: Retry.Retry,
|
|
1243
|
+
telemetry: TELEMETRY,
|
|
1244
|
+
span: "PatchDistribution",
|
|
1206
1245
|
}));
|
|
1207
1246
|
|
|
1208
1247
|
export type PurgeCacheError = UnprocessableEntity | StackitOpError;
|
|
@@ -1218,6 +1257,8 @@ export const purgeCache: API.OperationMethod<
|
|
|
1218
1257
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1219
1258
|
protocol: StackitProtocol,
|
|
1220
1259
|
retry: Retry.Retry,
|
|
1260
|
+
telemetry: TELEMETRY,
|
|
1261
|
+
span: "PurgeCache",
|
|
1221
1262
|
}));
|
|
1222
1263
|
|
|
1223
1264
|
export type PutCustomDomainError = UnprocessableEntity | StackitOpError;
|
|
@@ -1233,6 +1274,8 @@ export const putCustomDomain: API.OperationMethod<
|
|
|
1233
1274
|
errors: [UnprocessableEntity, UnknownStackitError],
|
|
1234
1275
|
protocol: StackitProtocol,
|
|
1235
1276
|
retry: Retry.Retry,
|
|
1277
|
+
telemetry: TELEMETRY,
|
|
1278
|
+
span: "PutCustomDomain",
|
|
1236
1279
|
}));
|
|
1237
1280
|
|
|
1238
1281
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|