Skip to content
Console
On this page

Deployment protections

The Hosting policy singleton for an environment.

The Hosting policy singleton for an environment. This describes desired state, not whether ingress is enforcing it.

Service Sylphx Hosting · Resource type hosting.sylphx.com/DeploymentProtection · Name pattern orgs/{org}/projects/{project}/envs/{env}/deployment_protections/{deployment_protection} · Shape singleton

Fields

FieldTypeWhat it is
namestringThe environment's deployment_protections/default.
uidstringStable identity for the environment lifetime. Output only.
metaResourceMetaPolicy generation and ETag.
modestringThe default mode resolves to org_member in previews and public elsewhere. Explicit public or org_member overrides that default.
protectionServingRouteProtectionThe resolved Hosting policy. Output only.

Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetReads the environment's desired policy (deployment_protections/default).
PATCHupdateUpdates the environment's desired Deployment Protection policy.

get

Reads the environment's desired policy (deployment_protections/default).

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection · scope hosting:read · effect read · Request, response and examples

update

Updates the environment's desired Deployment Protection policy.

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection · scope hosting:write · effect write · Request, response and examples