Method: projects.locations.repositories.aptArtifacts.upload

Stay organized with collections Save and categorize content based on your preferences.

Directly uploads an Apt artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.

HTTP request

  • Upload URI, for media upload requests:
    POST https://artifactregistry.googleapis.com/upload/v1beta2/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:create
  • Metadata URI, for metadata-only requests:
    POST https://artifactregistry.googleapis.com/v1beta2/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:create

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The name of the parent resource where the artifacts will be uploaded.

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

  • artifactregistry.aptartifacts.create

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

The response to upload an artifact.

JSON representation
{
  "operation": {
    object (Operation)
  }
}
Fields
operation

object (Operation)

Operation to be returned to the user.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.