Method: projects.locations.connections.repositories.create

Creates a Repository.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



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



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:


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.