get-transform.asciidoc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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" : "kibana_sample_data_ecommerce",
  56. "dest" : "kibana_sample_data_ecommerce_transform",
  57. "query" : {
  58. "match_all" : { }
  59. },
  60. "pivot" : {
  61. "group_by" : {
  62. "customer_id" : {
  63. "terms" : {
  64. "field" : "customer_id"
  65. }
  66. }
  67. },
  68. "aggregations" : {
  69. "max_price" : {
  70. "max" : {
  71. "field" : "taxful_total_price"
  72. }
  73. }
  74. }
  75. }
  76. }
  77. ]
  78. }
  79. ----
  80. // TESTRESPONSE