Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

sylphx config config_segments

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

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

#get

Gets a config segment.

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

CLI

Shell
sylphx config config-segments get orgs/acme/projects/shop/envs/production/config_segments/config-segment

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

#list

Lists config segments in an environment.

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

CLI

Shell
sylphx config config-segments list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments · scope config: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.

#create

Creates a config segment.

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

CLI

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

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments · scope config: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.includedstringSubjects always in the segment, by user_id or anonymous_id. Repeat the flag for each value.
--spec.excludedstringSubjects never in the segment, whatever else holds. Repeat the flag for each value.
--spec.conditionsjsonConditions over the evaluation context; all must hold. Repeat the flag for each value.
--spec.descriptionstringWho the segment is.
--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 config segment; every flag naming it follows.

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

CLI

Shell
sylphx config config-segments update orgs/acme/projects/shop/envs/production/config_segments/config-segment

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_segments/config-segment · scope config: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.includedstringSubjects always in the segment, by user_id or anonymous_id. Repeat the flag for each value.
--spec.excludedstringSubjects never in the segment, whatever else holds. Repeat the flag for each value.
--spec.conditionsjsonConditions over the evaluation context; all must hold. Repeat the flag for each value.
--spec.descriptionstringWho the segment is.
--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 config segment; refused while a flag names it.

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

CLI

Shell
sylphx config config-segments delete orgs/acme/projects/shop/envs/production/config_segments/config-segment --yes

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

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.
--yesboolDo not ask before this destructive call.