Skip to content
Console
On this page

sylphx connections

Every sylphx 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 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 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.

begin-authorization

Begins GitHub device authorization for a new or existing user Connection. The operator opens verification_uri and enters user_code once. Broker keeps the device code and all resulting tokens; clients never supply credentials. Reauthorization preserves the Connection's provider and expected login.

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

CLI

Shell
sylphx connections begin-authorization orgs/acme/connections/connection

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

Flags

FlagTypeWhat it does
--github-userjsonVerified App provider and expected user; must match an existing Connection. Required.
--etagstringRequired current etag when replacing an existing authorization attempt.
--no-waitboolReturn the call at once instead of waiting for it to finish.

complete-authorization

Polls one authorization attempt no earlier than next_poll_time. Only an explicit pending response allows another provider poll. Unknown outcomes require a new authorization; successful credentials are sealed and committed before the Connection becomes active. A completed attempt is safe to replay.

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

CLI

Shell
sylphx connections complete-authorization orgs/acme/connections/connection

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

Flags

FlagTypeWhat it does
--authorization-idstringExact attempt returned by begin; stale attempts never poll the provider. Required.
--no-waitboolReturn the call at once instead of waiting for it to finish.

import-oauth2-credentials

Imports existing OAuth 2.0 credentials into sealed Broker custody for a Connection without returning any secret token.

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

CLI

Shell
sylphx connections import-oauth2-credentials orgs/acme/connections/connection

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

Flags

FlagTypeWhat it does
--providerstringOAuth 2.0 ConnectionProvider resource name; required when creating a new Connection.
--refresh-tokenstringWrite-only refresh token sealed inside Broker custody and never returned. Required. The value is never returned.
--access-tokenstringOptional write-only access token cached until access_token_expire_time. The value is never returned.
--access-token-expire-timetimestampExpiry of the optional initial access_token.
--external-account-idstringOptional non-secret external account id.
--provider-metadatakey=valueOptional non-secret metadata merged into spec.oauth2.provider_metadata. Repeat the flag for each value.
--room-bot-bindingjsonOpts a fresh Connection into Broker-only room Bot use. Requires an org-wide Connections admin. Rotation must repeat the exact same binding. Requires an unexpired access token whose Slack workspace and bot are independently verified by Broker. This prepares custody only; it does not verify room membership or grant room authority.
--no-waitboolReturn the call at once instead of waiting for it to finish.

create

Records a Connection. GitLab registration stores credential references and remains pending provider verification.

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

CLI

Shell
sylphx connections create --parent orgs/acme

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; unset for Web Push.
--spec.external-idstringThe provider's id of the installation, for example a GitHub App installation id. Unset for Web Push.
--spec.web-push.keystringEnabled, generated SIGN/ec_p256_sha256 Key in the Connection organization.
--spec.web-push.contactstringOperator contact, a mailto: or HTTPS URI; used as the JWT subject.
--spec.github-user.providerstringApp provider whose OAuth client issued the authorization.
--spec.github-user.loginstringExpected verified GitHub login; never inferred from untrusted input alone.
--spec.oauth2.external-account-idstringNon-secret account identifier associated with the external authorization.
--spec.oauth2.provider-metadatakey=valueNon-secret provider metadata captured from callbacks or supplied by the caller. Secret-bearing keys are rejected. Repeat the flag for each value.
--spec.s3-signing.principalstringExact Access workload principal, in the Connection organization.
--spec.s3-signing.secret-versionstringPinned same-org SecretVersion containing the R2 signing key pair.
--spec.s3-signing.originstringCanonical R2 HTTPS origin (no path, port, query or fragment).
--spec.s3-signing.object-prefixstringBucket and an object namespace; slash-terminated, no leading slash.
--spec.s3-signing.allow-actor-head-replacementboolOpt in to If-Match replacement PUTs, only for <bucket>/actor-heads/v1/. When enabled, both create and replacement PUTs sign application/json.
--spec.gitlab.instance-urlstringCredential-free HTTPS instance base, including an optional deployment subpath.
--spec.gitlab.project-idstringCanonical positive decimal GitLab project ID, not a repository path.
--spec.gitlab.api-token-versionstringPinned SecretVersion in this org for API and repository access.
--spec.gitlab.webhook-token-versionstringPinned SecretVersion in this org for the webhook token. Use a separate Secret.
--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 Connection metadata or mutable configuration, such as pinned GitLab SecretVersions.

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

CLI

Shell
sylphx 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.
--spec.web-push.keystringEnabled, generated SIGN/ec_p256_sha256 Key in the Connection organization.
--spec.web-push.contactstringOperator contact, a mailto: or HTTPS URI; used as the JWT subject.
--spec.github-user.providerstringApp provider whose OAuth client issued the authorization.
--spec.github-user.loginstringExpected verified GitHub login; never inferred from untrusted input alone.
--spec.oauth2.external-account-idstringNon-secret account identifier associated with the external authorization.
--spec.oauth2.provider-metadatakey=valueNon-secret provider metadata captured from callbacks or supplied by the caller. Secret-bearing keys are rejected. Repeat the flag for each value.
--spec.s3-signing.principalstringExact Access workload principal, in the Connection organization.
--spec.s3-signing.secret-versionstringPinned same-org SecretVersion containing the R2 signing key pair.
--spec.s3-signing.originstringCanonical R2 HTTPS origin (no path, port, query or fragment).
--spec.s3-signing.object-prefixstringBucket and an object namespace; slash-terminated, no leading slash.
--spec.s3-signing.allow-actor-head-replacementboolOpt in to If-Match replacement PUTs, only for <bucket>/actor-heads/v1/. When enabled, both create and replacement PUTs sign application/json.
--spec.gitlab.api-token-versionstringPinned SecretVersion in this org for API and repository access.
--spec.gitlab.webhook-token-versionstringPinned SecretVersion in this org for the webhook token. Use a separate Secret.
--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 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.