Method: projects.locations.repositories.create

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

HTTP request

POST https://artifactregistry.googleapis.com/v1beta1/{parent=projects/*/locations/*}/repositories

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The name of the parent resource where the repository will be created.

Authorization requires the following IAM permission on the specified resource parent:

  • artifactregistry.repositories.create

Query parameters

Parameters
repositoryId

string

The repository id to use for this repository.

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 Cloud IAM permission on the parent resource:

  • artifactregistry.repositories.create

For more information, see the Cloud IAM Documentation.