- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- ModelExportOutputConfig
- GcrDestination
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in
Returns an empty response in the response
field when it completes.
HTTP request
POST https://automl.googleapis.com/v1beta1/{name}:export
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the model to export. Authorization requires the following Google IAM permission on the specified resource
|
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.
ModelExportOutputConfig
Output configuration for ModelExport Action.
JSON representation | |
---|---|
{ "modelFormat": string, "params": { string: string, ... }, // Union field |
Fields | ||
---|---|---|
modelFormat |
The format in which the model must be exported. The available, and default, formats depend on the problem and model type (if given problem and type combination doesn't have a format listed, it means its models are not exportable):
quickstart](https: //cloud.google.com/vision/automl/docs/containers-gcs-quickstart) * core_ml - Used for iOS mobile devices. |
|
params |
Additional model-type and format specific parameters describing the requirements for the to be exported model files, any string must be up to 25000 characters long.
|
|
Union field destination . Required. The destination of the output. destination can be only one of the following: |
||
gcsDestination |
The Google Cloud Storage location where the model is to be written to. This location may only be set for the following model formats: "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". Under the directory given as the destination a new one with name "model-export- |
|
gcrDestination |
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker". The model image will be created under the given URI. |
GcrDestination
The GCR location where the image must be pushed to.
JSON representation | |
---|---|
{ "outputUri": string } |
Fields | |
---|---|
outputUri |
Required. Google Contained Registry URI of the new image, up to 2000 characters long. See https: //cloud.google.com/container-registry/do // cs/pushing-and-pulling#pushing_an_image_to_a_registry Accepted forms: * [HOSTNAME]/[PROJECT-ID]/[IMAGE] * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG] The requesting user must have permission to push images the project. |