update_data_frame.asciidoc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --
  2. :api: update-data-frame-transform
  3. :request: UpdateDataFrameTransformRequest
  4. :response: UpdateDataFrameTransformResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Update {dataframe-transform} API
  8. Updates an existing {dataframe-transform}.
  9. The API accepts a +{request}+ object as a request and returns a +{response}+.
  10. [id="{upid}-{api}-request"]
  11. ==== Update {dataframe-transform} request
  12. A +{request}+ requires the following argument:
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> The update configuration with which to update the {dataframe-transform}.
  18. <2> The ID of the configuration to update.
  19. <3> Whether or not to wait to run deferrable validations until `_start` is called.
  20. This option should be used with care as the created {dataframe-transform} will run
  21. with the privileges of the user creating it. Meaning, if they do not have privileges,
  22. such an error will not be visible until `_start` is called.
  23. [id="{upid}-{api}-config"]
  24. ==== {dataframe-transform-cap} update configuration
  25. The `DataFrameTransformConfigUpdate` object contains all the details about updated
  26. {dataframe-transform} configuration and contains the following arguments:
  27. ["source","java",subs="attributes,callouts,macros"]
  28. --------------------------------------------------
  29. include-tagged::{doc-tests-file}[{api}-config]
  30. --------------------------------------------------
  31. <1> The source indices and query from which to gather data.
  32. <2> The destination index and optional pipeline.
  33. <3> How often to check for updates to the source indices.
  34. <4> How to keep the {dataframe-transform} in sync with incoming data.
  35. <5> Optional free text description of the transform.
  36. include::../execution.asciidoc[]
  37. [id="{upid}-{api}-response"]
  38. ==== Response
  39. The returned +{response}+ contains the updated {dataframe-transform} configuration
  40. or an error if the update failed or is invalid.