stop_job.asciidoc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --
  2. :api: rollup-stop-job
  3. :request: StopRollupJobRequest
  4. :response: StopRollupJobResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Stop Rollup Job API
  9. experimental::[]
  10. [id="{upid}-{api}-request"]
  11. ==== Request
  12. The Stop Rollup Job API allows you to stop a job by ID.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> The ID of the job to stop.
  18. <2> Whether the request should wait that the stop operation has completed
  19. before returning (optional, defaults to `false`)
  20. <3> If `wait_for_completion=true`, this parameter controls how long to wait
  21. before giving up and throwing an error (optional, defaults to 30 seconds).
  22. [id="{upid}-{api}-response"]
  23. ==== Response
  24. The returned +{response}+ indicates if the stop command was received.
  25. ["source","java",subs="attributes,callouts,macros"]
  26. --------------------------------------------------
  27. include-tagged::{doc-tests-file}[{api}-response]
  28. --------------------------------------------------
  29. <1> Whether or not the stop job request was received.
  30. include::../execution.asciidoc[]