stop-trained-model-deployment.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [role="xpack"]
  2. [[stop-trained-model-deployment]]
  3. = Stop trained model deployment API
  4. [subs="attributes"]
  5. ++++
  6. <titleabbrev>Stop trained model deployment</titleabbrev>
  7. ++++
  8. Stops a trained model deployment.
  9. [[stop-trained-model-deployment-request]]
  10. == {api-request-title}
  11. `POST _ml/trained_models/<deployment_id>/deployment/_stop`
  12. [[stop-trained-model-deployment-prereq]]
  13. == {api-prereq-title}
  14. Requires the `manage_ml` cluster privilege. This privilege is included in the
  15. `machine_learning_admin` built-in role.
  16. [[stop-trained-model-deployment-desc]]
  17. == {api-description-title}
  18. Deployment is required only for trained models that have a PyTorch `model_type`.
  19. [[stop-trained-model-deployment-path-params]]
  20. == {api-path-parms-title}
  21. `<deployment_id>`::
  22. (Required, string)
  23. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=deployment-id]
  24. [[stop-trained-model-deployment-query-params]]
  25. == {api-query-parms-title}
  26. `allow_no_match`::
  27. (Optional, Boolean)
  28. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-no-match-deployments]
  29. `force`::
  30. (Optional, Boolean) If true, the deployment is stopped even if it or one of its
  31. model aliases is referenced by ingest pipelines. You can't use these pipelines
  32. until you restart the model deployment.
  33. ////
  34. [role="child_attributes"]
  35. [[stop-trained-model-deployment-results]]
  36. == {api-response-body-title}
  37. ////
  38. ////
  39. [[stop-trained-models-response-codes]]
  40. == {api-response-codes-title}
  41. ////
  42. [[stop-trained-model-deployment-example]]
  43. == {api-examples-title}
  44. The following example stops the `my_model_for_search` deployment:
  45. [source,console]
  46. --------------------------------------------------
  47. POST _ml/trained_models/my_model_for_search/deployment/_stop
  48. --------------------------------------------------