get-transform.asciidoc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. beta[]
  10. Retrieves configuration information for {dataframe-transforms}.
  11. ==== Request
  12. `GET _data_frame/transforms/<data_frame_transform_id>` +
  13. `GET _data_frame/transforms/<data_frame_transform_id>,<data_frame_transform_id>` +
  14. `GET _data_frame/transforms/` +
  15. `GET _data_frame/transforms/_all` +
  16. `GET _data_frame/transforms/*`
  17. //===== Description
  18. ==== Path Parameters
  19. `data_frame_transform_id`::
  20. (string) Identifier for the {dataframe-transform}. It can be a
  21. {dataframe-transform} identifier or a wildcard expression. If you do not
  22. specify one of these options, the API returns information for all
  23. {dataframe-transforms}.
  24. `from`::
  25. (integer) Skips the specified number of {dataframe-transforms}. The
  26. default value is `0`.
  27. `size`::
  28. (integer) Specifies the maximum number of {dataframe-transforms} to obtain. The default value is `100`.
  29. ==== Results
  30. The API returns the following information:
  31. `transforms`::
  32. (array) An array of transform resources, which are sorted by the `id` value in
  33. ascending order.
  34. ==== Authorization
  35. If the {es} {security-features} are enabled, you must have
  36. `monitor_data_frame_transforms` cluster privileges to use this API. The built-in
  37. `data_frame_transforms_user` role has these privileges. For more information,
  38. see {stack-ov}/security-privileges.html[Security privileges] and
  39. {stack-ov}/built-in-roles.html[Built-in roles].
  40. ==== Examples
  41. The following example retrieves information about a maximum of ten transforms:
  42. [source,js]
  43. --------------------------------------------------
  44. GET _data_frame/transforms?size=10
  45. --------------------------------------------------
  46. // CONSOLE
  47. // TEST[skip:setup kibana sample data]
  48. The following example gets configuration information for the
  49. `ecommerce_transform` {dataframe-transform}:
  50. [source,js]
  51. --------------------------------------------------
  52. GET _data_frame/transforms/ecommerce_transform
  53. --------------------------------------------------
  54. // CONSOLE
  55. // TEST[skip:setup kibana sample data]
  56. The API returns the following results:
  57. [source,js]
  58. ----
  59. {
  60. "count" : 1,
  61. "transforms" : [
  62. {
  63. "id" : "ecommerce_transform",
  64. "source" : {
  65. "index" : [
  66. "kibana_sample_data_ecommerce"
  67. ],
  68. "query" : {
  69. "term" : {
  70. "geoip.continent_name" : {
  71. "value" : "Asia"
  72. }
  73. }
  74. }
  75. },
  76. "dest" : {
  77. "index" : "kibana_sample_data_ecommerce_transform"
  78. },
  79. "pivot" : {
  80. "group_by" : {
  81. "customer_id" : {
  82. "terms" : {
  83. "field" : "customer_id"
  84. }
  85. }
  86. },
  87. "aggregations" : {
  88. "max_price" : {
  89. "max" : {
  90. "field" : "taxful_total_price"
  91. }
  92. }
  93. }
  94. },
  95. "description" : "Maximum priced ecommerce data by customer_id in Asia"
  96. }
  97. ]
  98. }
  99. ----
  100. // TESTRESPONSE