Deploy Model

opensearch_py_ml.ml_commons.MLCommonClient.deploy_model(self, model_id: str, wait_until_deployed: bool = True) object

This method deploys a model in the opensearch cluster using ml-common plugin’s deploy model api

Parameters:
  • model_id (string) – unique id of the model

  • wait_until_deployed (bool) – Whether to wait until the model is deployed

Returns:

returns a json object, with task_id and status key.

Return type:

object