Skip to content
Console
Menu

Getting Started

Authentication

KV Store

sylphx hosting services

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

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

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

Not available yet. Sylphx Hosting is declared in the registry but no backend serves it: every command answers 501 with the problem code UNIMPLEMENTED.

#get

Gets a service.

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

CLI

Shell
sylphx hosting services get orgs/acme/projects/shop/envs/production/services/service

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

#list

Lists services in a environment.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx hosting services list orgs/acme/projects/shop/envs/production

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

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter over labels, filterable fields, and Ready.
--order-bystringAIP-132 ordering over filterable fields.

#create

Creates a service. The Operation is done when the controller settles it.

ID — The id segment of the new Resource's name; the server assigns one when omitted.

CLI

Shell
sylphx hosting services create --parent orgs/acme/projects/shop/envs/production

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/services · scope hosting:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--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.
--spec.source.source-linkstringBuild from this SourceLink's repository on every push to branch.
--spec.source.imagestringRun this Artifact, by digest: registry.sylphx.net/<path>@sha256:<hex>.
--spec.source.branchstringThe branch that ships to this Service; default the SourceLink's production branch. Ignored for image.
--spec.source.build.root-directorystringThe directory inside the repository to build; default the root.
--spec.source.build.dockerfilestringA Dockerfile path relative to root_directory; unset lets the zero-config frontend detect the stack.
--spec.source.build.build-classstringThe Build class, sylphx-<os>-<size>; default sylphx-linux-standard.
--spec.commandstringOverrides the image's command.
--spec.portintThe port the application listens on; the public edge stays 443.
--spec.exposureenumWho can reach the Service; default PUBLIC. One of public, internal.
--spec.sizeenumThe size of each instance; default the plan's. One of nano, micro, small, standard, large, xlarge, xxlarge.
--spec.scaling.min-instancesintInstances kept running with no traffic; 0 idles to zero and wakes on request.
--spec.scaling.max-instancesintInstances at most; 0 means the plan's limit.
--spec.health.protocolenumHow to probe. One of http, tcp.
--spec.health.pathstringThe HTTP path to probe when protocol is HTTP.
--spec.health.startup-timeoutdurationHow long a new instance may take to pass its first probe.
--spec.envkey=valuePlain environment variables. Secret values bind through secret_env, never here. Repeat the flag for each value.
--spec.secret-envkey=valueEnvironment variables bound to Sylphx Secrets: variable name to Secret name. The value never enters the spec. Repeat the flag for each value.
--spec.regionsstringRegions to run in; default the project's home region. Repeat the flag for each value.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.

#update

Updates a service.

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

CLI

Shell
sylphx hosting services update orgs/acme/projects/shop/envs/production/services/service

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/services/service · 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.
--spec.source.source-linkstringBuild from this SourceLink's repository on every push to branch.
--spec.source.imagestringRun this Artifact, by digest: registry.sylphx.net/<path>@sha256:<hex>.
--spec.source.branchstringThe branch that ships to this Service; default the SourceLink's production branch. Ignored for image.
--spec.source.build.root-directorystringThe directory inside the repository to build; default the root.
--spec.source.build.dockerfilestringA Dockerfile path relative to root_directory; unset lets the zero-config frontend detect the stack.
--spec.source.build.build-classstringThe Build class, sylphx-<os>-<size>; default sylphx-linux-standard.
--spec.commandstringOverrides the image's command.
--spec.portintThe port the application listens on; the public edge stays 443.
--spec.exposureenumWho can reach the Service; default PUBLIC. One of public, internal.
--spec.sizeenumThe size of each instance; default the plan's. One of nano, micro, small, standard, large, xlarge, xxlarge.
--spec.scaling.min-instancesintInstances kept running with no traffic; 0 idles to zero and wakes on request.
--spec.scaling.max-instancesintInstances at most; 0 means the plan's limit.
--spec.health.protocolenumHow to probe. One of http, tcp.
--spec.health.pathstringThe HTTP path to probe when protocol is HTTP.
--spec.health.startup-timeoutdurationHow long a new instance may take to pass its first probe.
--spec.envkey=valuePlain environment variables. Secret values bind through secret_env, never here. Repeat the flag for each value.
--spec.secret-envkey=valueEnvironment variables bound to Sylphx Secrets: variable name to Secret name. The value never enters the spec. Repeat the flag for each value.
--spec.regionsstringRegions to run in; default the project's home region. Repeat the flag for each value.
--allow-missingboolCreate the Resource when it does not exist (declarative upsert).
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.

#delete

Deletes a service.

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

CLI

Shell
sylphx hosting services delete orgs/acme/projects/shop/envs/production/services/service --yes

DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/services/service · scope hosting:write · effect destructive · Request, response and examples

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--allow-missingboolSucceed when the Resource does not exist.
--dry-runboolValidate and print the result without writing (validate_only).
--forceboolAlso delete every child Resource; without it a parent with children fails with FAILED_PRECONDITION.
--no-waitboolReturn the call at once instead of waiting for it to finish.
--yesboolDo not ask before this destructive call.