2019-08-07 11:37:35 -04:00
|
|
|
--
|
|
|
|
:api: update-data-frame-transform
|
|
|
|
:request: UpdateDataFrameTransformRequest
|
|
|
|
:response: UpdateDataFrameTransformResponse
|
|
|
|
--
|
2019-09-11 14:21:45 -04:00
|
|
|
[role="xpack"]
|
2019-08-07 11:37:35 -04:00
|
|
|
[id="{upid}-{api}"]
|
2019-09-16 11:28:19 -04:00
|
|
|
=== Update {transform} API
|
2019-08-07 11:37:35 -04:00
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
Updates an existing {transform}.
|
2019-08-07 11:37:35 -04:00
|
|
|
|
|
|
|
The API accepts a +{request}+ object as a request and returns a +{response}+.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2019-09-16 11:28:19 -04:00
|
|
|
==== Update {transform} request
|
2019-08-07 11:37:35 -04:00
|
|
|
|
|
|
|
A +{request}+ requires the following argument:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
2019-09-16 11:28:19 -04:00
|
|
|
<1> The update configuration with which to update the {transform}.
|
2019-08-07 11:37:35 -04:00
|
|
|
<2> The ID of the configuration to update.
|
|
|
|
<3> Whether or not to wait to run deferrable validations until `_start` is called.
|
2019-09-16 11:28:19 -04:00
|
|
|
This option should be used with care as the created {transform} will run
|
2019-08-07 11:37:35 -04:00
|
|
|
with the privileges of the user creating it. Meaning, if they do not have privileges,
|
|
|
|
such an error will not be visible until `_start` is called.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-config"]
|
2019-09-16 11:28:19 -04:00
|
|
|
==== {transform-cap} update configuration
|
2019-08-07 11:37:35 -04:00
|
|
|
|
|
|
|
The `DataFrameTransformConfigUpdate` object contains all the details about updated
|
2019-09-16 11:28:19 -04:00
|
|
|
{transform} configuration and contains the following arguments:
|
2019-08-07 11:37:35 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-config]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> The source indices and query from which to gather data.
|
|
|
|
<2> The destination index and optional pipeline.
|
|
|
|
<3> How often to check for updates to the source indices.
|
2019-09-16 11:28:19 -04:00
|
|
|
<4> How to keep the {transform} in sync with incoming data.
|
|
|
|
<5> Optional free text description of the {transform}.
|
2019-08-07 11:37:35 -04:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Response
|
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
The returned +{response}+ contains the updated {transform} configuration
|
2019-08-07 11:37:35 -04:00
|
|
|
or an error if the update failed or is invalid.
|