- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Installation
- Try it!
connections.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.
HTTP request
GET https://developerconnect.googleapis.com/v1/{connection=projects/*/locations/*/connections/*}:fetchGitHubInstallations
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| connection | 
 Required. The resource name of the connection in the format  | 
Request body
The request body must be empty.
Response body
Response of fetching github installations.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "installations": [
    {
      object ( | 
| Fields | |
|---|---|
| installations[] | 
 List of installations available to the OAuth user (for github.com) or all the installations (for GitHub enterprise). | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the connection resource:
- developerconnect.connections.fetchGitHubInstallations
For more information, see the IAM documentation.
Installation
Represents an installation of the GitHub App.
| JSON representation | 
|---|
| { "id": string, "name": string, "type": string } | 
| Fields | |
|---|---|
| id | 
 ID of the installation in GitHub. | 
| name | 
 Name of the GitHub user or organization that owns this installation. | 
| type | 
 Either "user" or "organization". |