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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["\u003cp\u003eThis endpoint, \u003ccode\u003efetchGitHubInstallations\u003c/code\u003e, retrieves a list of GitHub Installations that can be added to a Connection, with behavior differing between github.com and GitHub Enterprise.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003eGET\u003c/code\u003e method with a specified URL structure that includes a required \u003ccode\u003econnection\u003c/code\u003e path parameter in the format \u003ccode\u003eprojects/*/locations/*/connections/*\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the response body will contain a JSON representation with a list of installation objects.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003edeveloperconnect.connections.fetchGitHubInstallations\u003c/code\u003e IAM permission on the \u003ccode\u003econnection\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eInstallation\u003c/code\u003e object has a string \u003ccode\u003eid\u003c/code\u003e, a string \u003ccode\u003ename\u003c/code\u003e, and the \u003ccode\u003etype\u003c/code\u003e which is either "user" or "organization".\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connections.fetchGitHubInstallations\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.FetchGitHubInstallationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Installation](#Installation)\n - [JSON representation](#Installation.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nconnections.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.\n\n### HTTP request\n\n`GET https://developerconnect.googleapis.com/v1/{connection=projects/*/locations/*/connections/*}:fetchGitHubInstallations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse of fetching github installations.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `connection` resource:\n\n- `developerconnect.connections.fetchGitHubInstallations`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nInstallation\n------------\n\nRepresents an installation of the GitHub App."]]