- [HTTP request](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.request_body)
- [Response body](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.ListBitbucketServerRepositoriesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#body.aspect)
- [BitbucketServerRepository](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#BitbucketServerRepository)
  - [JSON representation](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#BitbucketServerRepository.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#try-it)

List all repositories for a given `BitbucketServerConfig`.

This API is experimental.

### HTTP request

Choose an endpoint:
global africa-south1 asia-east1 asia-east2 asia-northeast1 asia-northeast2 asia-northeast3 asia-south1 asia-south2 asia-southeast1 asia-southeast2 asia-southeast3 australia-southeast1 australia-southeast2 europe-central2 europe-north1 europe-north2 europe-southwest1 europe-west1 europe-west10 europe-west12 europe-west2 europe-west3 europe-west4 europe-west6 europe-west8 europe-west9 europe-west15 me-central1 me-central2 me-west1 northamerica-northeast1 northamerica-northeast2 northamerica-south1 southamerica-east1 southamerica-west1 us-central1 us-central2 us-east1 us-east4 us-east5 us-east7 us-south1 us-west1 us-west2 us-west3 us-west4 us-west8   
`GET https://cloudbuild.googleapis.com/v1/{parent=projects/*/locations/*/bitbucketServerConfigs/*}/repos`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Name of the parent resource. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` The maximum number of configs to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| `pageToken` | `string` A page token, received from a previous `ListBitbucketServerRepositoriesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBitbucketServerConfigsRequest` 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 |
|---|
| ``` { "bitbucketServerRepositories": [ { object (`https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#BitbucketServerRepository`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `bitbucketServerRepositories[]` | ``object (`https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs.repos/list#BitbucketServerRepository`)`` List of Bitbucket Server 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](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

## BitbucketServerRepository

BitbucketServerRepository represents a repository hosted on a Bitbucket Server.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "description": string, "browseUri": string, "repoId": { object (`https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs#BitbucketServerConfig.BitbucketServerRepositoryId`) } } ``` |

| 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 Bitbucket Server instance. |
| `repoId` | ``object (`https://docs.cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.bitbucketServerConfigs#BitbucketServerConfig.BitbucketServerRepositoryId`)`` Identifier for a repository hosted on a Bitbucket Server. |