- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- LinkableGitRepository
- Try it!
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 | 
 Required. The name of the Connection. Format:  | 
Query parameters
| Parameters | |
|---|---|
| pageSize | 
 Optional. Number of results to return in the list. Defaults to 20. | 
| pageToken | 
 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 ( | 
| Fields | |
|---|---|
| linkableGitRepositories[] | 
 The git repositories that can be linked to the connection. | 
| nextPageToken | 
 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 | 
 The clone uri of the repository. |