stop-transform.asciidoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[stop-data-frame-transform]]
  4. === Stop {dataframe-transforms} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Stop {dataframe-transforms}</titleabbrev>
  8. ++++
  9. beta[]
  10. Stops one or more {dataframe-transforms}.
  11. [discrete]
  12. [[stop-data-frame-transform-request]]
  13. ==== {api-request-title}
  14. `POST _data_frame/transforms/<data_frame_transform_id>/_stop` +
  15. `POST _data_frame/transforms/<data_frame_transform_id1>,<data_frame_transform_id2>/_stop` +
  16. `POST _data_frame/transforms/_all/_stop`
  17. [discrete]
  18. [[stop-data-frame-transform-prereq]]
  19. ==== {api-prereq-title}
  20. * If the {es} {security-features} are enabled, you must have
  21. `manage_data_frame_transforms` cluster privileges to use this API. The built-in
  22. `data_frame_transforms_admin` role has these privileges. For more information,
  23. see {stack-ov}/security-privileges.html[Security privileges] and
  24. {stack-ov}/built-in-roles.html[Built-in roles].
  25. [discrete]
  26. [[stop-data-frame-transform-desc]]
  27. ==== {api-description-title}
  28. You can stop multiple {dataframe-transforms} in a single API request by using a
  29. comma-separated list of {dataframe-transforms} or a wildcard expression.
  30. All {dataframe-transforms} can be stopped by using `_all` or `*` as the
  31. `<data_frame_transform_id>`.
  32. [discrete]
  33. [[stop-data-frame-transform-path-parms]]
  34. ==== {api-path-parms-title}
  35. `<data_frame_transform_id>` (Required)::
  36. (string) Identifier for the {dataframe-transform}. This identifier can contain
  37. lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It
  38. must start and end with alphanumeric characters.
  39. [discrete]
  40. [[stop-data-frame-transform-query-parms]]
  41. ==== {api-query-parms-title}
  42. `allow_no_match` (Optional)::
  43. (boolean) Specifies what to do when the request:
  44. +
  45. --
  46. * Contains wildcard expressions and there are no {dataframe-transforms} that match.
  47. * Contains the `_all` string or no identifiers and there are no matches.
  48. * Contains wildcard expressions and there are only partial matches.
  49. The default value is `true`, which returns a successful acknowledgement message
  50. when there are no matches. When there are only partial matches, the API stops
  51. the appropriate {dataframe-transforms}. For example, if the request contains
  52. `test-id1*,test-id2*` as the identifiers and there are no {dataframe-transforms}
  53. that match `test-id2*`, the API nonetheless stops the {dataframe-transforms}
  54. that match `test-id1*`.
  55. If this parameter is `false`, the request returns a `404` status code when there
  56. are no matches or only partial matches.
  57. --
  58. `timeout` (Optional)::
  59. (time value) If `wait_for_completion=true`, the API blocks for (at maximum)
  60. the specified duration while waiting for the transform to stop. If more than
  61. `timeout` time has passed, the API throws a timeout exception. Even if a
  62. timeout exception is thrown, the stop request is still processing and
  63. eventually moves the transform to `STOPPED`. The timeout simply means the API
  64. call itself timed out while waiting for the status change. Defaults to `30s`
  65. `wait_for_completion` (Optional)::
  66. (boolean) If set to `true`, causes the API to block until the indexer state
  67. completely stops. If set to `false`, the API returns immediately and the
  68. indexer will be stopped asynchronously in the background. Defaults to `false`.
  69. [discrete]
  70. [[stop-data-frame-transform-response-codes]]
  71. ==== {api-response-codes-title}
  72. `404` (Missing resources)::
  73. If `allow_no_match` is `false`, this code indicates that there are no
  74. resources that match the request or only partial matches for the request.
  75. [discrete]
  76. [[stop-data-frame-transform-example]]
  77. ==== {api-examples-title}
  78. [source,js]
  79. --------------------------------------------------
  80. POST _data_frame/transforms/ecommerce_transform/_stop
  81. --------------------------------------------------
  82. // CONSOLE
  83. // TEST[skip:set up kibana samples]
  84. When the {dataframe-transform} stops, you receive the following results:
  85. [source,js]
  86. ----
  87. {
  88. "acknowledged" : true
  89. }
  90. ----
  91. // TESTRESPONSE