[[reference-ml-start_trained_model_deployment]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.ml.startTrainedModelDeployment Start a trained model deployment. It allocates the model to every machine learning node. {ref}/start-trained-model-deployment.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlStartTrainedModelDeploymentRequest, options?): Promise ---- [discrete] ===== `MlStartTrainedModelDeploymentRequest` [source,ts] ---- interface MlStartTrainedModelDeploymentRequest extends <> { model_id: <> cache_size?: <> deployment_id?: string number_of_allocations?: <> priority?: MlTrainingPriority queue_capacity?: <> threads_per_allocation?: <> timeout?: <> wait_for?: MlDeploymentAllocationState } ---- [discrete] ===== `MlStartTrainedModelDeploymentResponse` [source,ts] ---- interface MlStartTrainedModelDeploymentResponse { assignment: MlTrainedModelAssignment } ----