- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- ImageObjectDetectionModelDeploymentMetadata
- ImageClassificationModelDeploymentMetadata
Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parameters (as e.g. changing node_number) will reset the deployment state without pausing the model's availability.
Only applicable for Image Object Detection and Image Classification; all other domains manage deployment automatically.
Returns an empty response in the
response
field when it completes.
HTTP request
POST https://automl.googleapis.com/v1beta1/{name}:deploy
Path parameters
Parameters | |
---|---|
name |
Resource name of the model to deploy. Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field model_deployment_metadata . The per-domain specific deployment parameters. model_deployment_metadata can be only one of the following: |
||
imageObjectDetectionModelDeploymentMetadata |
Model deployment metadata specific to Image Object Detection. |
|
imageClassificationModelDeploymentMetadata |
Model deployment metadata specific to Image Classification. |
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.
ImageObjectDetectionModelDeploymentMetadata
Model deployment metadata specific to Image Object Detection.
JSON representation | |
---|---|
{ "nodeCount": string } |
Fields | |
---|---|
nodeCount |
Input only. The number of nodes to deploy the model on. A node is an abstraction of a machine resource, which can handle online prediction QPS as given in the model's qps_per_node. Must be between 1 and 100, inclusive on both ends. |
ImageClassificationModelDeploymentMetadata
Model deployment metadata specific to Image Classification.
JSON representation | |
---|---|
{ "nodeCount": string } |
Fields | |
---|---|
nodeCount |
Input only. The number of nodes to deploy the model on. A node is an abstraction of a machine resource, which can handle online prediction QPS as given in the model's
|