1
0

reset-transform.asciidoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[reset-transform]]
  4. = Reset {transform} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Reset {transform}</titleabbrev>
  8. ++++
  9. Resets a {transform}.
  10. [[reset-transform-request]]
  11. == {api-request-title}
  12. `POST _transform/<transform_id>/_reset`
  13. [[reset-transform-prereqs]]
  14. == {api-prereq-title}
  15. * Requires the `manage_transform` cluster privilege. This privilege is included
  16. in the `transform_admin` built-in role.
  17. [reset-transform-desc]]
  18. == {api-description-title}
  19. Before you can reset the {transform}, you must stop it; alternatively, use the
  20. `force` query parameter.
  21. If the destination index was created by the transform, it is deleted.
  22. [[reset-transform-path-parms]]
  23. == {api-path-parms-title}
  24. `<transform_id>`::
  25. (Required, string)
  26. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
  27. [[reset-transform-query-parms]]
  28. == {api-query-parms-title}
  29. `force`::
  30. (Optional, Boolean)
  31. If this value is `true`, the {transform} is reset regardless of its current
  32. state. If it's false, the {transform} must be `stopped` before it can be reset.
  33. The default value is `false`
  34. `timeout`::
  35. (Optional, time)
  36. Period to wait for a response. If no response is received before the timeout
  37. expires, the request fails and returns an error. Defaults to `30s`.
  38. [[reset-transform-examples]]
  39. == {api-examples-title}
  40. [source,console]
  41. --------------------------------------------------
  42. POST _transform/ecommerce_transform/_reset
  43. --------------------------------------------------
  44. // TEST[skip:setup kibana sample data]
  45. When the {transform} is reset, you receive the following results:
  46. [source,console-result]
  47. ----
  48. {
  49. "acknowledged" : true
  50. }
  51. ----