Method: projects.locations.connections.fetchLinkableGitRepositories

connections.fetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

HTTP request

GET https://developerconnect.googleapis.com/v1/{connection=projects/*/locations/*/connections/*}:fetchLinkableGitRepositories

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

Optional. Number of results to return in the list. Defaults to 20.

pageToken

string

Optional. Page start.

Request body

The request body must be empty.

Response body

Response message for connections.fetchLinkableGitRepositories.

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

JSON representation
{
  "linkableGitRepositories": [
    {
      object (LinkableGitRepository)
    }
  ],
  "nextPageToken": string
}
Fields
linkableGitRepositories[]

object (LinkableGitRepository)

The git repositories that can be linked to the connection.

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:

  • developerconnect.connections.fetchLinkableGitRepositories

For more information, see the IAM documentation.

LinkableGitRepository

LinkableGitRepository represents a git repository that can be linked to a connection.

JSON representation
{
  "cloneUri": string
}
Fields
cloneUri

string

The clone uri of the repository.