---
# @generated by sylphx-gen. Do not edit.
title: "Deployment protections"
description: "The `deployment_protections` collection of Sylphx Hosting: The Hosting policy singleton for an environment."
type: reference
product: hosting
summary: "The Hosting policy singleton for an environment."
updated: 2026-09-28
order: 900
---

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`](/docs/api/deployment_protections#get) | Reads the environment's desired policy (deployment_protections/default). |
| `PATCH` | [`update`](/docs/api/deployment_protections#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](/docs/api/deployment_protections/get)

## 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](/docs/api/deployment_protections/update)
