2018-11-15 09:57:17 -05:00
|
|
|
--
|
|
|
|
:api: delete-model-snapshot
|
|
|
|
:request: DeleteModelSnapshotRequest
|
|
|
|
:response: AcknowledgedResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-11-15 09:57:17 -05:00
|
|
|
[id="{upid}-{api}"]
|
|
|
|
=== Delete Model Snapshot API
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
|
|
|
==== Delete Model Snapshot Request
|
|
|
|
|
|
|
|
A +{request}+ object requires both a non-null `jobId` and a non-null `snapshotId`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
---------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
---------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing existing `jobId` and `snapshotId`.
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Delete Model Snapshot Response
|
|
|
|
|
|
|
|
The returned +{response}+ object indicates the acknowledgement of the request:
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
---------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
---------------------------------------------------
|
|
|
|
<1> `isAcknowledged` was the deletion request acknowledged or not
|