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 |
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
|
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field source_artifact. The artifact to be exported. source_artifact can be only one of the following: |
|
sourceVersion |
The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version} |
sourceTag |
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 |
The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: |
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.