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}"]
|
2020-09-04 19:57:15 -04:00
|
|
|
=== Delete model snapshot API
|
2018-11-15 09:57:17 -05:00
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2020-09-04 19:57:15 -04:00
|
|
|
==== Delete model snapshot request
|
2018-11-15 09:57:17 -05:00
|
|
|
|
|
|
|
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"]
|
2020-09-04 19:57:15 -04:00
|
|
|
==== Delete model snapshot response
|
2018-11-15 09:57:17 -05:00
|
|
|
|
|
|
|
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
|