Method: projects.locations.connections.repositories.create

Creates a Repository.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
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.

Query parameters

Parameters
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 -._~%!$&'()*+,;=@.

Request body

The request body contains an instance of Repository.

Response body

If successful, the response body contains a newly created 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.