Method: projects.locations.connections.repositories.list

Lists Repositories in a given connection.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent, which owns this collection of Repositories. Format: projects/*/locations/*/connections/*.

Query parameters

Parameters
pageSize

integer

Number of results to return in the list.

pageToken

string

Page start.

filter

string

A filter expression that filters resources listed in the response. Expressions must follow API improvement proposal AIP-160. e.g. remoteUri:"https://github.com*".

Request body

The request body must be empty.

Response body

Message for response to listing Repositories.

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

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

object (Repository)

The list of Repositories.

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 parent resource:

  • cloudbuild.repositories.list

For more information, see the IAM documentation.