SDK reference / Models / WebApps
WebAppCreate
Kind: class
Namespace: Egulu.Sdk.Models.WebApps
A code-first Managed Web App running on a HostingPlan (ADR-0716).
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
AddressRules | List<Models.WebApps.WebAppAddressRule>? | addressRules | Address rules in order; the first match decides. At most 50. |
Annotations | Models.WebApps.WebAppCreate_annotations? | annotations | At most 256 KiB in all; never policy input. |
Cors | List<Models.WebApps.WebAppCorsRule>? | cors | CORS rules in order; none leaves CORS to the app. At most 10. |
DefaultAddressAction | string? | defaultAddressAction | ALLOW (default) or DENY: what a visitor whose address matches no rule gets. |
DisplayName | string? | displayName | Up to 63 characters. |
Environment | Models.WebApps.WebAppCreate_environment? | environment | Plain variables for the app (names of letters, digits and underscores; never PLAT_, K_, KNATIVE_ or PORT). Secrets are pinned, not typed here. A change is a new revision. |
Files | Models.WebApps.WebAppCreate_files? | files | Initial source or published code bundle (path -> text); no Dockerfile required. |
Framework | string? | framework | Optional framework profile ID (`webAppFrameworks`, W153 / ADR-0727), for example `dotnet`. |
FrameworkOptions | Models.WebApps.WebAppCreate_frameworkOptions? | frameworkOptions | Typed creation options validated against the chosen framework template (`webAppFrameworks`, W153 / ADR-0727). |
HealthCheck | Models.WebApps.WebAppHealthCheck? | healthCheck | The health check; absent asks `/` on the app's port with the defaults. Send `null` in a merge patch to remove it. |
IdleTimeoutSeconds | int? | idleTimeoutSeconds | Seconds an app with no request stays awake before it sleeps, 30 to 3600 (default 900); applies when minInstances is 0. |
Labels | Models.WebApps.WebAppCreate_labels? | labels | At most 64. |
MaxInstances | int? | maxInstances | The most instances, 1 to 20 (default 4); a plan may allow fewer. |
MinInstances | int? | minInstances | The fewest instances kept warm, 0 to 20 (default 0: an idle app sleeps). 1 or more needs trust tier T1 (ADR-0405). |
PlanId | string? | planId | Hosting plan ID in the same project and location. |
Requests | Models.WebApps.WebAppRequestSettings? | requests | Request handling: time limit, requests at once per instance, HTTP/2 to the app. |
RuntimeStack | string? | runtimeStack | Managed runtime stack: dotnet-10 | node-22 | python-3.13 | go-1.24. |
SecretPins | List<Models.WebApps.WebAppSecretPin>? | secretPins | Secret versions the app reads. A change needs a passkey sign-in of the last 15 minutes (ADR-0701, C-011). |
SignInWall | Models.WebApps.WebAppSignInWall? | signInWall | The sign-in wall; absent or OFF leaves the app open. |
TargetConcurrency | int? | targetConcurrency | Requests at once per instance the autoscaler aims for, 1 to 1000 (default 100). |
Template | string? | template | A framework template to start from (`webAppTemplates`): blazor | aspnetcore | node | python | go | static. The first revision is the template'spinned package; exclusive with files, and runtimeStack must be the template's. |