[[["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-17 UTC."],[[["\u003cp\u003eThis endpoint \u003ccode\u003econnections.fetchLinkableRepositories\u003c/code\u003e retrieves a list of repositories from SCM that are accessible and can be added to a specified connection.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003eGET\u003c/code\u003e method with a specified URL structure that utilizes gRPC Transcoding, and the request body must be empty.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint uses a required path parameter \u003ccode\u003econnection\u003c/code\u003e to define the target connection and optional query parameters \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e for list pagination.\u003c/p\u003e\n"],["\u003cp\u003eThe successful response includes a list of \u003ccode\u003erepositories\u003c/code\u003e and an optional \u003ccode\u003enextPageToken\u003c/code\u003e for pagination, all contained within a JSON formatted response body.\u003c/p\u003e\n"],["\u003cp\u003eAccessing this endpoint requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003ecloudbuild.connections.fetchLinkableRepositories\u003c/code\u003e on the connection resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connections.fetchLinkableRepositories\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.FetchLinkableRepositoriesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nconnections.fetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.\n\n### HTTP request\n\n`GET https://cloudbuild.googleapis.com/v2/{connection=projects/*/locations/*/connections/*}:fetchLinkableRepositories`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for connections.fetchLinkableRepositories.\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](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `connection` resource:\n\n- `cloudbuild.connections.fetchLinkableRepositories`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]