get-transform.asciidoc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[get-data-frame-transform]]
  4. === Get {dataframe-transforms} API
  5. ++++
  6. <titleabbrev>Get {dataframe-transforms}</titleabbrev>
  7. ++++
  8. Retrieves configuration information for {dataframe-transforms}.
  9. ==== Request
  10. `GET _data_frame/transforms/<data_frame_transform_id>` +
  11. `GET _data_frame/transforms/<data_frame_transform_id>,<data_frame_transform_id>` +
  12. `GET _data_frame/transforms/` +
  13. `GET _data_frame/transforms/_all` +
  14. `GET _data_frame/transforms/*`
  15. //===== Description
  16. ==== Path Parameters
  17. `data_frame_transform_id`::
  18. (string) Identifier for the {dataframe-transform}. It can be a
  19. {dataframe-transform} identifier or a wildcard expression. If you do not
  20. specify one of these options, the API returns information for all
  21. {dataframe-transforms}.
  22. ////
  23. ==== Request Body
  24. `page`::
  25. `from`:::
  26. (integer) Skips the specified number of {dataframe-transforms}. The
  27. default value is `0`.
  28. `size`:::
  29. (integer) Specifies the maximum number of {dataframe-transforms} to obtain.
  30. The default value is `100`.
  31. ////
  32. ==== Results
  33. The API returns the following information:
  34. `transforms`::
  35. (array) An array of transform resources.
  36. //==== Authorization
  37. ==== Examples
  38. The following example gets configuration information for the
  39. `ecommerce_transform` {dataframe-transform}:
  40. [source,js]
  41. --------------------------------------------------
  42. GET _data_frame/transforms/ecommerce_transform
  43. --------------------------------------------------
  44. // CONSOLE
  45. // TEST[skip:setup kibana sample data]
  46. The API returns the following results:
  47. [source,js]
  48. ----
  49. {
  50. "count" : 1,
  51. "transforms" : [
  52. {
  53. "id" : "ecommerce_transform",
  54. "source" : "kibana_sample_data_ecommerce",
  55. "dest" : "kibana_sample_data_ecommerce_transform",
  56. "query" : {
  57. "match_all" : { }
  58. },
  59. "pivot" : {
  60. "group_by" : {
  61. "customer_id" : {
  62. "terms" : {
  63. "field" : "customer_id"
  64. }
  65. }
  66. },
  67. "aggregations" : {
  68. "max_price" : {
  69. "max" : {
  70. "field" : "taxful_total_price"
  71. }
  72. }
  73. }
  74. }
  75. }
  76. ]
  77. }
  78. ----
  79. // TESTRESPONSE