stop_job.asciidoc 1.1 KB

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