Method: projects.locations.connections.fetchLinkableRepositories

connections.fetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.

HTTP request

GET https://cloudbuild.googleapis.com/v2/{connection=projects/*/locations/*/connections/*}:fetchLinkableRepositories

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
connection

string

Required. The name of the Connection. Format: projects/*/locations/*/connections/*.

Query parameters

Parameters
pageSize

integer

Number of results to return in the list. Default to 20.

pageToken

string

Page start.

Request body

The request body must be empty.

Response body

Response message for connections.fetchLinkableRepositories.

If successful, the response body contains data with the following structure:

JSON representation
{
  "repositories": [
    {
      object (Repository)
    }
  ],
  "nextPageToken": string
}
Fields
repositories[]

object (Repository)

repositories ready to be created.

nextPageToken

string

A token identifying a page of results the server should return.

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:

  • cloudbuild.connections.fetchLinkableRepositories

For more information, see the IAM documentation.