Method: projects.locations.connections.repositories.batchCreate

Creates multiple repositories inside a connection.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

Request body

The request body contains data with the following structure:

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

object (CreateRepositoryRequest)

Required. The request messages specifying the repositories to create.

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.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • cloudbuild.repositories.create

For more information, see the IAM documentation.

CreateRepositoryRequest

Message for creating a Repository.

JSON representation
{
  "parent": string,
  "repository": {
    object (Repository)
  },
  "repositoryId": string
}
Fields
parent

string

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository

object (Repository)

Required. The repository to create.

repositoryId

string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.