Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
The name of the parent resource where the artifacts will be imported.
Authorization requires the following IAM permission on the specified resource parent:
artifactregistry.googetartifacts.create
Request body
The request body contains data with the following structure:
JSON representation
{// Union field source can be only one of the following:"gcsSource": {object (ImportGoogetArtifactsGcsSource)}// End of list of possible types for union field source.}
Fields
Union field source. The source location of the package binaries. source can be only one of the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-13 UTC."],[[["\u003cp\u003eThis endpoint imports GooGet artifacts, creating Package, Version, and File resources, ignoring conflicting artifacts.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses gRPC Transcoding syntax and requires choosing a location from a list of available options, such as \u003ccode\u003eglobal\u003c/code\u003e, \u003ccode\u003eeurope-west3\u003c/code\u003e, \u003ccode\u003eus-central1\u003c/code\u003e, etc.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain data specifying the source location of the package binaries, which can currently only be a Google Cloud Storage location, denoted by \u003ccode\u003egcsSource\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an instance of \u003ccode\u003eOperation\u003c/code\u003e, and authorization requires the \u003ccode\u003eartifactregistry.googetartifacts.create\u003c/code\u003e IAM permission on the parent resource.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization also requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.repositories.googetArtifacts.import\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [ImportGoogetArtifactsGcsSource](#ImportGoogetArtifactsGcsSource)\n - [JSON representation](#ImportGoogetArtifactsGcsSource.SCHEMA_REPRESENTATION)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nImports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.\n\n### HTTP request\n\nChoose a location: \nglobal europe-west3 europe-west8 europe-west9 us-central1 us-east1 us-east4 us-east5 us-south1 us-west1 us-west2 us-west3 us-west4 me-central2 us eu \n\n\u003cbr /\u003e\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/artifact-registry/docs/reference/rest/v1/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nImportGoogetArtifactsGcsSource\n------------------------------\n\nGoogle Cloud Storage location where the artifacts currently reside."]]