Skip to content
Console
Menu

Getting Started

Authentication

KV Store

sylphx connections connections

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

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

#get

Gets a connection.

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

CLI

Shell
sylphx connections connections get orgs/acme/connections/connection

GET https://api.sylphx.com/v1/orgs/acme/connections/connection · scope connections:read · effect read · Request, response and examples

#list

Lists an org's connections.

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

CLI

Shell
sylphx connections connections list orgs/acme

GET https://api.sylphx.com/v1/orgs/acme/connections · scope connections: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

Records an installation; the controller confirms it with the provider.

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

CLI

Shell
sylphx connections connections create --parent orgs/acme --spec.provider … --spec.external-id …

POST https://api.sylphx.com/v1/orgs/acme/connections · scope connections: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.providerstringThe provider this is an installation of. Required.
--spec.external-idstringThe provider's id of the installation, for example a GitHub App installation id. Required.
--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 connection's metadata.

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

CLI

Shell
sylphx connections connections update orgs/acme/connections/connection

PATCH https://api.sylphx.com/v1/orgs/acme/connections/connection · scope connections: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.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.

#delete

Forgets a connection. The installation itself is removed at the provider.

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

CLI

Shell
sylphx connections connections delete orgs/acme/connections/connection --yes

DELETE https://api.sylphx.com/v1/orgs/acme/connections/connection · scope connections: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.