Skip to content
Console
On this page

sylphx connections connection_providers

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

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

begin-registration

Begins an expiring, one-use GitHub manifest registration ceremony. Open registration_url to POST the bound, prefilled manifest to GitHub. github_organization selects organization ownership. The state-authorized callback is GET /v1/connections/github-manifest:callback?state=...&code=... and returns only provider metadata and an installation URL.

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

CLI

Shell
sylphx connections connection-providers begin-registration orgs/acme

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

Flags

FlagTypeWhat it does
--connection-provider-idstringExplicit immutable provider identity. Required.
--signing-keystringUnused environment-scoped public Keys target in this organization. Required.
--webhook-secretstringEnvironment-scoped Secrets custody target in this organization. Required.
--github-manifestjsonPermissions, events and the declared platform webhook destination. Required.
--expected-github-app-slugstringSlug whose literal wrapped-import path has been enrolled in custody. Renaming the App at GitHub causes the callback to refuse before import. Required.
--github-organizationstringGitHub organization that will own the App; unset selects a personal account.

create

Creates a connection provider, such as an OAuth 2.0 client configuration.

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

CLI

Shell
sylphx connections connection-providers create --parent orgs/acme

POST https://api.sylphx.com/v1/orgs/acme/connection_providers · scope connections:admin · 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.github-app.app-idintThe App's numeric id.
--spec.github-app.slugstringThe App's slug, for example sylphx.
--spec.github-app.client-idstringThe App's OAuth client id.
--spec.github-app.signing-keystringThe imported, non-exportable SIGN Key (RS256) that signs App assertions; only the credential service may use it.
--spec.github-app.webhook-secretstringThe Secret holding the webhook secret that verifies deliveries.
--spec.sharing-grantsjsonOrganizations allowed to use specific installations of this provider. Removing a grant prevents subsequent Broker exchanges. Signing custody remains in the provider's organization and is never copied to a recipient. Repeat the flag for each value.
--spec.oauth2.authorize-urlstringAuthorization endpoint HTTPS URL.
--spec.oauth2.token-urlstringAuthorization-code exchange endpoint HTTPS URL.
--spec.oauth2.refresh-urlstringRefresh endpoint HTTPS URL; defaults to token_url when empty.
--spec.oauth2.client-idstringProvider-issued OAuth client identifier.
--spec.oauth2.client-secretstringWrite-only OAuth client secret sealed at rest and never returned. The value is never returned.
--spec.oauth2.scopesstringDefault OAuth scopes requested during authorization. Repeat the flag for each value.
--spec.oauth2.extra-authorize-paramskey=valueStatic query parameters appended to authorize_url. Reserved keys (state, redirect_uri) are rejected. Repeat the flag for each value.
--spec.oauth2.redirect-uristringOptional redirect_uri override sent on authorize and token requests; defaults to the hosted callback URL.
--spec.oauth2.token-methodenumHTTP transport for code exchange and refresh requests. One of form_post, query_get.
--spec.oauth2.client-authenumHow client credentials are sent to token and refresh endpoints. One of body_or_query, basic.
--spec.oauth2.authorize-code-paramstringQuery parameter carrying the authorization code on redirect callbacks; defaults to code.
--spec.oauth2.token-code-paramstringParameter key carrying the authorization code on token exchange requests; defaults to code.
--spec.oauth2.exchange-grant-typestringGrant type value sent during authorization-code exchange; defaults to authorization_code.
--spec.oauth2.client-id-paramstringParameter key for client_id on token and refresh requests when not using HTTP Basic authentication; defaults to client_id.
--spec.oauth2.client-secret-paramstringParameter key for client_secret on token and refresh requests when not using HTTP Basic authentication; defaults to client_secret.
--spec.oauth2.callback-metadata-paramsstringNon-secret query parameter keys copied from the redirect callback into Connection.spec.oauth2.provider_metadata. Repeat the flag for each value.
--spec.oauth2.post-authorize-redirect-uristringOptional HTTPS URL redirected to after hosted callback completion.
--spec.oauth2.authorize-client-id-paramstringQuery parameter key for client_id in authorize_url; defaults to client_id.
--dry-runboolValidate and print the result without writing (validate_only).

begin-oauth2-authorization

Begins an expiring hosted OAuth 2.0 authorization ceremony for an OAuth 2.0 ConnectionProvider. Returns an authorization_url carrying an expiring one-use state token handled by GET /v1/connections/oauth2:callback.

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

CLI

Shell
sylphx connections connection-providers begin-oauth2-authorization orgs/acme/connection_providers/connection-provider

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

Flags

FlagTypeWhat it does
--connection-idstringTarget Connection id to create or reauthorize on callback; server-assigned when empty.
--post-authorize-redirect-uristringOptional HTTPS redirect destination after callback completion.
--scopesstringOptional scopes overriding the provider defaults. Repeat the flag for each value.
--extra-authorize-paramskey=valueAdditional per-request query parameters appended to authorize_url. Repeat the flag for each value.
--provider-metadatakey=valueOptional non-secret metadata persisted onto the resulting Connection. Repeat the flag for each value.
--external-account-idstringOptional non-secret external account id recorded on creation.
--return-pathstringOrigin-relative path under the provider redirect base, exclusive with post_authorize_redirect_uri.

adopt

Adopts an existing GitHub App whose non-exportable custody already exists. The server observes public SPKI metadata and verifies signed GET /app before atomically registering the SIGN Key and provider. No private key is accepted.

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

CLI

Shell
sylphx connections connection-providers adopt orgs/acme

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

Flags

FlagTypeWhat it does
--connection-provider-idstringExplicit immutable provider identity. Required.
--github-appjsonExisting App identity and unused full environment-scoped SIGN Key target. An optional webhook_secret must already name this organization's Secret. Required.
--reasonstringAccountable operator's reason for adopting the existing App. Required.

get

Gets a connection provider.

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

CLI

Shell
sylphx connections connection-providers get orgs/acme/connection_providers/connection-provider

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

list

Lists an org's connection providers.

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

CLI

Shell
sylphx connections connection-providers list orgs/acme

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

update

Updates a connection provider.

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

CLI

Shell
sylphx connections connection-providers update orgs/acme/connection_providers/connection-provider

PATCH https://api.sylphx.com/v1/orgs/acme/connection_providers/connection-provider · scope connections:admin · 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.github-app.slugstringThe App's slug, for example sylphx.
--spec.github-app.client-idstringThe App's OAuth client id.
--spec.github-app.signing-keystringThe imported, non-exportable SIGN Key (RS256) that signs App assertions; only the credential service may use it.
--spec.github-app.webhook-secretstringThe Secret holding the webhook secret that verifies deliveries.
--spec.sharing-grantsjsonOrganizations allowed to use specific installations of this provider. Removing a grant prevents subsequent Broker exchanges. Signing custody remains in the provider's organization and is never copied to a recipient. Repeat the flag for each value.
--spec.oauth2.authorize-urlstringAuthorization endpoint HTTPS URL.
--spec.oauth2.token-urlstringAuthorization-code exchange endpoint HTTPS URL.
--spec.oauth2.refresh-urlstringRefresh endpoint HTTPS URL; defaults to token_url when empty.
--spec.oauth2.client-idstringProvider-issued OAuth client identifier.
--spec.oauth2.client-secretstringWrite-only OAuth client secret sealed at rest and never returned. The value is never returned.
--spec.oauth2.scopesstringDefault OAuth scopes requested during authorization. Repeat the flag for each value.
--spec.oauth2.extra-authorize-paramskey=valueStatic query parameters appended to authorize_url. Reserved keys (state, redirect_uri) are rejected. Repeat the flag for each value.
--spec.oauth2.redirect-uristringOptional redirect_uri override sent on authorize and token requests; defaults to the hosted callback URL.
--spec.oauth2.token-methodenumHTTP transport for code exchange and refresh requests. One of form_post, query_get.
--spec.oauth2.client-authenumHow client credentials are sent to token and refresh endpoints. One of body_or_query, basic.
--spec.oauth2.authorize-code-paramstringQuery parameter carrying the authorization code on redirect callbacks; defaults to code.
--spec.oauth2.token-code-paramstringParameter key carrying the authorization code on token exchange requests; defaults to code.
--spec.oauth2.exchange-grant-typestringGrant type value sent during authorization-code exchange; defaults to authorization_code.
--spec.oauth2.client-id-paramstringParameter key for client_id on token and refresh requests when not using HTTP Basic authentication; defaults to client_id.
--spec.oauth2.client-secret-paramstringParameter key for client_secret on token and refresh requests when not using HTTP Basic authentication; defaults to client_secret.
--spec.oauth2.callback-metadata-paramsstringNon-secret query parameter keys copied from the redirect callback into Connection.spec.oauth2.provider_metadata. Repeat the flag for each value.
--spec.oauth2.post-authorize-redirect-uristringOptional HTTPS URL redirected to after hosted callback completion.
--spec.oauth2.authorize-client-id-paramstringQuery parameter key for client_id in authorize_url; defaults to client_id.
--dry-runboolValidate and print the result without writing (validate_only).

delete

Deletes a connection provider; force forgets its local connections only.

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

CLI

Shell
sylphx connections connection-providers delete orgs/acme/connection_providers/connection-provider --yes

DELETE https://api.sylphx.com/v1/orgs/acme/connection_providers/connection-provider · scope connections:admin · 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).
--forceboolAlso forget every child Resource; without it a parent with children fails with INVALID_STATE. This never uninstalls the App at GitHub.
--yesboolDo not ask before this destructive call.