upgrade-job-model-snapshot.asciidoc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --
  2. :api: upgrade-job-model-snapshot
  3. :request: UpgradeJobModelSnapshotRequest
  4. :response: UpgradeJobModelSnapshotResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Upgrade job snapshot API
  9. Upgrades a previously stored {ml} model snapshot to the
  10. current major version.
  11. It accepts an +{request}+ object and responds
  12. with an +{response}+ object.
  13. [id="{upid}-{api}-request"]
  14. ==== Upgrade job snapshots request
  15. A +{request}+ requires the following arguments:
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-request]
  19. --------------------------------------------------
  20. <1> The job that owns the snapshot
  21. <2> The snapshot id to upgrade
  22. <3> The time out of the request. When `wait_for_completion` is `false` the timeout value is
  23. applied to the time it takes for the task to be assigned to a node. When `wait_for_completion`
  24. is `true` this timeout applies for the whole upgrade process. The default value is `30m`
  25. <4> When true, this causes the request to not return until the upgrade is complete.
  26. Otherwise, the response returns as soon as the task
  27. is assigned to a node. The default is false.
  28. [id="{upid}-{api}-response"]
  29. ==== Upgrade job snapshot response
  30. A +{response}+ contains information on if the request was completed and its assigned node.
  31. ["source","java",subs="attributes,callouts,macros"]
  32. --------------------------------------------------
  33. include-tagged::{doc-tests-file}[{api}-response]
  34. --------------------------------------------------
  35. <1> Was the upgrade completed
  36. <2> What is the assigned node if the task is not completed