Method: projects.locations.repositories.create

Creates a new repository in a given project and location.

Host: Data Plane

HTTP request

POST https://securesourcemanager.googleapis.com/v1/{parent=projects/*/locations/*}/repositories

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The project in which to create the repository. Values are of the form projects/{project_number}/locations/{locationId}

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 value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

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:

  • securesourcemanager.repositories.create

For more information, see the IAM documentation.