Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

sylphx workflows workflows

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

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

#get

Gets a workflow.

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

CLI

Shell
sylphx workflows workflows get orgs/acme/projects/shop/envs/production/workflows/workflow

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

#list

Lists workflows.

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

CLI

Shell
sylphx workflows workflows list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows · scope workflows: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 and filterable fields.
--order-bystringAIP-132 ordering over filterable fields.

#create

Creates a workflow.

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

CLI

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

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows · scope workflows: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.handler-uristringAn HTTPS URI on port 443 whose host is a verified Network Domain of this project or a Hosting route the project owns.
--spec.service-handler.servicestringThe Hosting Service in the same environment.
--spec.service-handler.pathstringThe request path, for example /api/sylphx/workflows.
--spec.retry-policy.max-attemptsintAttempts per step, 1 to 100; default 10.
--spec.retry-policy.initial-intervaldurationThe first backoff; default 1s.
--spec.retry-policy.backoff-coefficientnumberBackoff growth, 1.0 to 10.0; default 2.0.
--spec.retry-policy.max-intervaldurationThe largest backoff; default 10m.
--spec.timeouts.invocation-timeoutdurationOne handler invocation, 1s to 900s; default 60s.
--spec.timeouts.run-timeoutdurationThe whole Run, at most 365d; default 30d.
--spec.max-concurrent-runsintAt most this many running Runs of this Workflow; 0 is unlimited within the plan.
--dry-runboolValidate and print the result without writing (validate_only).

#update

Updates a workflow.

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

CLI

Shell
sylphx workflows workflows update orgs/acme/projects/shop/envs/production/workflows/workflow

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow · scope workflows: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.handler-uristringAn HTTPS URI on port 443 whose host is a verified Network Domain of this project or a Hosting route the project owns.
--spec.service-handler.servicestringThe Hosting Service in the same environment.
--spec.service-handler.pathstringThe request path, for example /api/sylphx/workflows.
--spec.retry-policy.max-attemptsintAttempts per step, 1 to 100; default 10.
--spec.retry-policy.initial-intervaldurationThe first backoff; default 1s.
--spec.retry-policy.backoff-coefficientnumberBackoff growth, 1.0 to 10.0; default 2.0.
--spec.retry-policy.max-intervaldurationThe largest backoff; default 10m.
--spec.timeouts.invocation-timeoutdurationOne handler invocation, 1s to 900s; default 60s.
--spec.timeouts.run-timeoutdurationThe whole Run, at most 365d; default 30d.
--spec.max-concurrent-runsintAt most this many running Runs of this Workflow; 0 is unlimited within the plan.
--allow-missingboolCreate the workflow when it does not exist (declarative upsert).
--dry-runboolValidate and print the result without writing (validate_only).

#delete

Deletes a workflow.

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

CLI

Shell
sylphx workflows workflows delete orgs/acme/projects/shop/envs/production/workflows/workflow --yes

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

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--allow-missingboolSucceed when the workflow does not exist.
--dry-runboolValidate and print the result without writing (validate_only).
--forceboolAlso cancel and delete the Workflow's Runs and Schedules; without it a Workflow with open Runs or Schedules fails with INVALID_STATE.
--yesboolDo not ask before this destructive call.