Method: projects.locations.bitbucketServerConfigs.connectedRepositories.batchCreate

Batch connecting Bitbucket Server repositories to Cloud Build.

HTTP request

POST https://cloudbuild.googleapis.com/v1/{parent=projects/*/locations/*/bitbucketServerConfigs/*}/connectedRepositories:batchCreate

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The name of the BitbucketServerConfig that added connected repository. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{config}

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (CreateBitbucketServerConnectedRepositoryRequest)
    }
  ]
}
Fields
requests[]

object (CreateBitbucketServerConnectedRepositoryRequest)

Required. Requests to connect Bitbucket Server repositories.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

CreateBitbucketServerConnectedRepositoryRequest

Request to connect a repository from a connected Bitbucket Server host.

JSON representation
{
  "parent": string,
  "bitbucketServerConnectedRepository": {
    object (BitbucketServerConnectedRepository)
  }
}
Fields
parent

string

Required. The name of the BitbucketServerConfig that added connected repository. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{config}

bitbucketServerConnectedRepository

object (BitbucketServerConnectedRepository)

Required. The Bitbucket Server repository to connect.

BitbucketServerConnectedRepository

/ BitbucketServerConnectedRepository represents a connected Bitbucket Server / repository.

JSON representation
{
  "parent": string,
  "repo": {
    object (BitbucketServerRepositoryId)
  },
  "status": {
    object (Status)
  }
}
Fields
parent

string

The name of the BitbucketServerConfig that added connected repository. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{config}

repo

object (BitbucketServerRepositoryId)

The Bitbucket Server repositories to connect.

status

object (Status)

Output only. The status of the repo connection request.