Method: projects.locations.gitLabConfigs.repos.list

List all repositories for a given GitLabConfig.

This API is experimental

HTTP request

GET https://cloudbuild.googleapis.com/v1/{parent=projects/*/locations/*/gitLabConfigs/*}/repos

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the parent resource.

Query parameters

Parameters
pageSize

integer

The maximum number of repositories to return. The service may return fewer than this value.

pageToken

string

A page token, received from a previous ListGitLabRepositoriesRequest` call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListGitLabRepositoriesRequest must match the call that provided the page token.

Request body

The request body must be empty.

Response body

RPC response object returned by the repos.list RPC method.

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

JSON representation
{
  "gitlabRepositories": [
    {
      object (GitLabRepository)
    }
  ],
  "nextPageToken": string
}
Fields
gitlabRepositories[]

object (GitLabRepository)

List of GitLab repositories

nextPageToken

string

A token that can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

GitLabRepository

Proto Representing a GitLabRepository

JSON representation
{
  "name": string,
  "displayName": string,
  "description": string,
  "browseUri": string,
  "repositoryId": {
    object (GitLabRepositoryId)
  }
}
Fields
name

string

The resource name of the repository

displayName

string

Display name of the repository

description

string

Description of the repository

browseUri

string

Link to the browse repo page on the GitLab instance

repositoryId

object (GitLabRepositoryId)

Identifier for a repository