2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: delete-job
|
|
|
|
:request: DeleteJobRequest
|
|
|
|
:response: AcknowledgedResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2018-08-16 08:18:43 -04:00
|
|
|
=== Delete Job API
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-08-16 08:18:43 -04:00
|
|
|
==== Delete Job Request
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
A +{request}+ object requires a non-null `jobId` and can optionally set `force`.
|
2018-08-16 08:18:43 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
---------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-08-16 08:18:43 -04:00
|
|
|
---------------------------------------------------
|
2018-10-04 19:41:28 -04:00
|
|
|
<1> Constructing a new request referencing an existing `jobId`
|
|
|
|
|
|
|
|
==== Optional Arguments
|
|
|
|
|
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
---------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-force]
|
2018-10-04 19:41:28 -04:00
|
|
|
---------------------------------------------------
|
2018-08-16 08:18:43 -04:00
|
|
|
<1> Use to forcefully delete an opened job;
|
|
|
|
this method is quicker than closing and deleting the job.
|
2018-10-04 19:41:28 -04:00
|
|
|
Defaults to `false`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
---------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-wait-for-completion]
|
2018-10-04 19:41:28 -04:00
|
|
|
---------------------------------------------------
|
|
|
|
<1> Use to set whether the request should wait until the operation has completed before returning.
|
|
|
|
Defaults to `true`.
|
|
|
|
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-08-16 08:18:43 -04:00
|
|
|
==== Delete Job Response
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
The returned +{response}+ object indicates the acknowledgement of the job deletion or
|
|
|
|
the deletion task depending on whether the request was set to wait for completion:
|
2018-10-04 19:41:28 -04:00
|
|
|
|
2018-08-16 08:18:43 -04:00
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
---------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-08-16 08:18:43 -04:00
|
|
|
---------------------------------------------------
|
2018-10-04 19:41:28 -04:00
|
|
|
<1> whether was job deletion was acknowledged or not; will be `null` when set not to wait for completion
|
|
|
|
<2> the id of the job deletion task; will be `null` when set to wait for completion
|
2018-08-16 08:18:43 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|