---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:fetchGitHubInstallations"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:fetchGitHubInstallations"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:fetchGitHubInstallations

`GET /v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:fetchGitHubInstallations`

## Request

- Base URL: `https://developerconnect.googleapis.com`
- URL: `https://developerconnect.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:fetchGitHubInstallations`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `connectionsId` string, required

## Response `200`

Successful response

- FetchGitHubInstallationsResponse: Response of fetching github installations.
  - `installations` Installation[]: List of installations available to the OAuth user (for github.com) or all the installations (for GitHub enterprise).
    - `id` string, int64: ID of the installation in GitHub.
    - `name` string: Name of the GitHub user or organization that owns this installation.
    - `type` string: Either "user" or "organization".

---

[API](https://skmtc.dev/google/apis/developerconnect.md) - [All operations](https://skmtc.dev/google/apis/developerconnect/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/developerconnect/revisions/2f1551e5d3d6?raw)
