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
| Field | Type | What it is |
|---|---|---|
name | string | The environment's deployment_protections/default. |
uid | string | Stable identity for the environment lifetime. Output only. |
meta | ResourceMeta | Policy generation and ETag. |
mode | string | The default mode resolves to org_member in previews and public elsewhere. Explicit public or org_member overrides that default. |
protection | ServingRouteProtection | The 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.
| Method | Call | What it does |
|---|---|---|
GET | get | Reads the environment's desired policy (deployment_protections/default). |
PATCH | update | Updates 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