- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
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 |
Required. The name of the Connection. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
Number of results to return in the list. Default to 20. |
pageToken |
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 ( |
Fields | |
---|---|
repositories[] |
repositories ready to be created. |
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:
cloudbuild.connections.fetchLinkableRepositories
For more information, see the IAM documentation.