get_transform.asciidoc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --
  2. :api: get-transform
  3. :request: GetTransformRequest
  4. :response: GetTransformResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get {transform} API
  9. Retrieves configuration information about one or more {transforms}.
  10. The API accepts a +{request}+ object and returns a +{response}+.
  11. [id="{upid}-{api}-request"]
  12. ==== Get {transform} request
  13. A +{request}+ requires either a {transform} ID, a comma separated list
  14. of ids or the special wildcard `_all` to get all {transforms}.
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> Constructing a new GET request referencing an existing {transform}
  20. ==== Optional arguments
  21. The following arguments are optional.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-request-options]
  25. --------------------------------------------------
  26. <1> The page parameters `from` and `size`. `from` specifies the number of
  27. {transforms} to skip. `size` specifies the maximum number of
  28. {transforms} to get. Defaults to `0` and `100` respectively.
  29. <2> Whether to ignore if a wildcard expression matches no {transforms}.
  30. <3> Optional boolean value for requesting the {transform} in a format that can
  31. then be put into another cluster. Certain fields that can only be set when
  32. the {transform} is created are removed.
  33. include::../execution.asciidoc[]
  34. [id="{upid}-{api}-response"]
  35. ==== Response
  36. The returned +{response}+ contains the requested {transforms}.
  37. ["source","java",subs="attributes,callouts,macros"]
  38. --------------------------------------------------
  39. include-tagged::{doc-tests-file}[{api}-response]
  40. --------------------------------------------------