--- title: "Get a connection" canonical: "https://admiral.io/docs/api/integrations/IntegrationAPI_GetConnection" --- # Get a connection `GET https://api.admiral.io/v1/integrations/{integration}/connections/{connection}` - NOT_FOUND when no connection has that resource name. Scope: `integration:read` ### Path parameters - `integration` (string, required): The integration id. - `connection` (string, required): The connection id. ### Response 200 Success - `connection` (Connection): Connection is what your organization holds to one account on an integration's service. - `uid` (string): `int-` and twelve base36 characters. Never changes and is never reused, so it is what a reference to the connection holds. Pattern `^int-[0-9a-z]+$`. Read-only. - `name` (string): (IMMUTABLE) (OPTIONAL) The name, such as `acme`. Unique among the organization's connections to the integration, set when the connection is made and changed only by RenameConnection. It defaults to the vendor account's login, lowercased, so it may start with a digit. Lowercase letters, digits and hyphens, starting and ending with a letter or digit, 1 to 63 characters. It may not have the shape of a uid (`int-` and twelve characters). name.not_uid // a connection name may not have the shape of a uid Pattern `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. Length 1 to 63. - `resource_name` (string): (IDENTIFIER) The resource name, `integrations/{integration}/connections/{connection}`, such as `integrations/github/connections/acme`. Built from the names of the connection and its integration, so it changes when the connection is renamed; refer to it by `uid` to keep a reference stable. Pattern `^integrations/[a-z]([a-z0-9-]{0,61}[a-z0-9])?/connections/[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. - `settings` (ConnectionSettings): The block for the integration. Exactly one variant is populated. - `github` (GitHubConnectionSettings): GitHubConnectionSettings describes one installation of Admiral's GitHub App. GitHub is the source of every field, so all of it is read only. - `installation_id` (string (int64)): GitHub's id for the installation. Read-only. - `account_login` (string): The login of the organization or user the App is installed on, as GitHub spells it. Read-only. - `account_type` (AccountType): AccountType is what the App is installed on. One of `ACCOUNT_TYPE_UNSPECIFIED`, `ORGANIZATION`, `USER`. Read-only. - `repository_selection` (RepositorySelection): RepositorySelection is how the installation was scoped on GitHub. One of `REPOSITORY_SELECTION_UNSPECIFIED`, `ALL`, `SELECTED`. Read-only. - `repositories` (array of string): Full names, `owner/name`, when the selection is SELECTED. Empty when it is ALL, and empty on a DISCONNECTED connection. Read-only. - `url` (string): The page on GitHub where the installation is managed. Empty on a DISCONNECTED connection. Read-only. - `suspended_at` (Timestamp): Set while GitHub has the installation suspended. Read-only. - `status` (Status): One of `STATUS_UNSPECIFIED`, `CONNECTED`, `NEEDS_ATTENTION`, `DISCONNECTED`. Read-only. - `status_reason` (string): Why, and when, the status last left CONNECTED. Empty while connected. Read-only. - `etag` (string): Changes whenever the connection does. Send it back on rename or delete to refuse the change if someone else changed the connection first. Read-only. - `created_by` (ActorRef): Who connected it. Read-only. - `id` (string): The actor's typed id: a `usr-` user id or an `sa-` service account id. - `display_name` (string): Human-readable name (e.g., "John Smith", "deploy-bot"). - `email` (string): Email address (empty for non-human actors). - `created_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only. - `updated_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only.