delete-job.asciidoc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --
  2. :api: delete-job
  3. :request: DeleteJobRequest
  4. :response: AcknowledgedResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Delete Job API
  8. [id="{upid}-{api}-request"]
  9. ==== Delete Job Request
  10. A +{request}+ object requires a non-null `jobId` and can optionally set `force`.
  11. ["source","java",subs="attributes,callouts,macros"]
  12. ---------------------------------------------------
  13. include-tagged::{doc-tests-file}[{api}-request]
  14. ---------------------------------------------------
  15. <1> Constructing a new request referencing an existing `jobId`
  16. ==== Optional Arguments
  17. The following arguments are optional:
  18. ["source","java",subs="attributes,callouts,macros"]
  19. ---------------------------------------------------
  20. include-tagged::{doc-tests-file}[{api}-request-force]
  21. ---------------------------------------------------
  22. <1> Use to forcefully delete an opened job;
  23. this method is quicker than closing and deleting the job.
  24. Defaults to `false`.
  25. ["source","java",subs="attributes,callouts,macros"]
  26. ---------------------------------------------------
  27. include-tagged::{doc-tests-file}[{api}-request-wait-for-completion]
  28. ---------------------------------------------------
  29. <1> Use to set whether the request should wait until the operation has completed before returning.
  30. Defaults to `true`.
  31. [id="{upid}-{api}-response"]
  32. ==== Delete Job Response
  33. The returned +{response}+ object indicates the acknowledgement of the job deletion or
  34. the deletion task depending on whether the request was set to wait for completion:
  35. ["source","java",subs="attributes,callouts,macros"]
  36. ---------------------------------------------------
  37. include-tagged::{doc-tests-file}[{api}-response]
  38. ---------------------------------------------------
  39. <1> whether was job deletion was acknowledged or not; will be `null` when set not to wait for completion
  40. <2> the id of the job deletion task; will be `null` when set to wait for completion
  41. include::../execution.asciidoc[]