Method: projects.locations.repositories.exportArtifact

Exports an artifact to a Cloud Storage bucket.

HTTP request


POST https://artifactregistry.googleapis.com/v1/{repository=projects/*/locations/*/repositories/*}:exportArtifact

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
repository

string

Required. The repository of the artifact to export. Format: projects/{project}/locations/{location}/repositories/{repository}

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

  • artifactregistry.repositories.exportArtifacts

Request body

The request body contains data with the following structure:

JSON representation
{

  // Union field source_artifact can be only one of the following:
  "sourceVersion": string,
  "sourceTag": string
  // End of list of possible types for union field source_artifact.

  // Union field destination can be only one of the following:
  "gcsPath": string
  // End of list of possible types for union field destination.
}
Fields
Union field source_artifact. The artifact to be exported. source_artifact can be only one of the following:
sourceVersion

string

The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}

sourceTag

string

The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}

Union field destination. The destination to export the artifact to. destination can be only one of the following:
gcsPath

string

The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: dst_bucket, dst_bucket/sub_dir. Existing objects with the same path will be overwritten.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.