Skip to content
Console
On this page

sylphx hosting deployment_protections

Every sylphx hosting deployment_protections command: its argument, its flags and a run line.

The deployment_protections commands of Sylphx Hosting, as the CLI spells them: the same calls as the deployment_protections API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

get

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

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx hosting deployment-protections get orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection

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.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx hosting deployment-protections update orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection

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

Flags

FlagTypeWhat it does
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--modestringThe default mode resolves to org_member in previews and public elsewhere. Explicit public or org_member overrides that default.