Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one supported export format
.
HTTP request
POST https://{service-endpoint}/v1beta1/{name}:export
Where {service-endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the Model to export. The resource name may contain version id or version alias to specify the version, if no version is specified, the default version will be exported. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"outputConfig": {
object ( |
Fields | |
---|---|
outputConfig |
Required. The desired output location and configuration. |
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.
IAM Permissions
Requires the following IAM permission on the name
resource:
aiplatform.models.export
For more information, see the IAM documentation.
OutputConfig
Output configuration for the Model export.
JSON representation |
---|
{ "exportFormatId": string, "artifactDestination": { object ( |
Fields | |
---|---|
exportFormatId |
The id of the format in which the Model must be exported. Each Model lists the |
artifactDestination |
The Cloud Storage location where the Model artifact is to be written to. Under the directory given as the destination a new one with name " |
imageDestination |
The Google Container Registry or Artifact Registry uri where the Model container image will be copied to. This field should only be set when the |
ContainerRegistryDestination
The Container Registry location for the container image.
JSON representation |
---|
{ "outputUri": string } |
Fields | |
---|---|
outputUri |
Required. Container Registry URI of a container image. Only Google Container Registry and Artifact Registry are supported now. Accepted forms:
If a tag is not specified, "latest" will be used as the default tag. |