Method: projects.locations.repositories.kfpArtifacts.upload

Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The resource name of the repository where the KFP artifact will be uploaded.

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

  • artifactregistry.kfpartifacts.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "tags": [
    string
  ],
  "description": string
}
Fields
tags[]

string

Tags to be created with the version.

description

string

Description of the package version.

Response body

The response to upload an artifact.

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

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

object (Operation)

Operation that will 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.