get-transform.asciidoc 2.4 KB

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