2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: delete-job
|
|
|
|
:request: DeleteJobRequest
|
|
|
|
:response: AcknowledgedResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2019-07-25 11:58:16 -04:00
|
|
|
=== Delete {anomaly-job} API
|
|
|
|
|
|
|
|
Deletes an {anomaly-job} that exists in the cluster.
|
2018-08-16 08:18:43 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2019-07-25 11:58:16 -04:00
|
|
|
==== Delete {anomaly-job} request
|
2018-08-16 08:18:43 -04:00
|
|
|
|
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`
|
|
|
|
|
2019-07-25 11:58:16 -04:00
|
|
|
==== Optional arguments
|
2018-10-04 19:41:28 -04:00
|
|
|
|
|
|
|
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
|
|
|
---------------------------------------------------
|
2019-07-25 13:08:38 -04:00
|
|
|
<1> Use to forcefully delete an opened job. This method is quicker than closing
|
|
|
|
and deleting the job. Defaults to `false`.
|
2018-10-04 19:41:28 -04:00
|
|
|
|
|
|
|
["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
|
|
|
---------------------------------------------------
|
2019-07-25 11:58:16 -04:00
|
|
|
<1> Use to set whether the request should wait until the operation has completed
|
|
|
|
before returning. Defaults to `true`.
|
2018-10-04 19:41:28 -04:00
|
|
|
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-25 11:58:16 -04:00
|
|
|
==== Delete {anomaly-job} response
|
2018-08-16 08:18:43 -04:00
|
|
|
|
2019-07-25 11:58:16 -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
|
|
|
---------------------------------------------------
|
2019-07-25 13:08:38 -04:00
|
|
|
<1> Whether job deletion was acknowledged or not. It will be `null` when set
|
|
|
|
to not wait for completion.
|
|
|
|
<2> The ID of the job deletion task. It 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[]
|