Method: projects.locations.models.deploy

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

string

Resource name of the model to deploy.

Authorization requires the following Google IAM permission on the specified resource name:

  • automl.models.deploy

Request body

The request body contains data with the following structure:

JSON representation
{

  // Union field model_deployment_metadata can be only one of the following:
  "imageObjectDetectionModelDeploymentMetadata": {
    object (ImageObjectDetectionModelDeploymentMetadata)
  },
  "imageClassificationModelDeploymentMetadata": {
    object (ImageClassificationModelDeploymentMetadata)
  },
  // End of list of possible types for union field model_deployment_metadata.
}
Fields
Union field model_deployment_metadata. The per-domain specific deployment parameters. model_deployment_metadata can be only one of the following:
imageObjectDetectionModelDeploymentMetadata

object (ImageObjectDetectionModelDeploymentMetadata)

Model deployment metadata specific to Image Object Detection.

imageClassificationModelDeploymentMetadata

object (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

string (int64 format)

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

string (int64 format)

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

nodeQps. Must be between 1 and 100, inclusive on both ends.

Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Cloud AutoML Vision
Precisa de ajuda? Acesse nossa página de suporte.