- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CreateBitbucketServerConnectedRepositoryRequest
- BitbucketServerConnectedRepository
- Try it!
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 |
The name of the |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
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 ( |
Fields | |
---|---|
parent |
Required. The name of the |
bitbucketServerConnectedRepository |
Required. The Bitbucket Server repository to connect. |
BitbucketServerConnectedRepository
/ BitbucketServerConnectedRepository represents a connected Bitbucket Server / repository.
JSON representation |
---|
{ "parent": string, "repo": { object ( |
Fields | |
---|---|
parent |
The name of the |
repo |
The Bitbucket Server repositories to connect. |
status |
Output only. The status of the repo connection request. |