reset-transform.asciidoc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 you reset a {transform}, all checkpoints, states, and the destination index
  22. (if it was created by the {transform}) are deleted. The {transform} is updated
  23. to the latest format as if the <<update-transform>> API was used. The
  24. {transform} is ready to start again as if it had just been created.
  25. [[reset-transform-path-parms]]
  26. == {api-path-parms-title}
  27. `<transform_id>`::
  28. (Required, string)
  29. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
  30. [[reset-transform-query-parms]]
  31. == {api-query-parms-title}
  32. `force`::
  33. (Optional, Boolean)
  34. If this value is `true`, the {transform} is reset regardless of its current
  35. state. If it's false, the {transform} must be `stopped` before it can be reset.
  36. The default value is `false`
  37. `timeout`::
  38. (Optional, time)
  39. Period to wait for a response. If no response is received before the timeout
  40. expires, the request fails and returns an error. Defaults to `30s`.
  41. [[reset-transform-examples]]
  42. == {api-examples-title}
  43. [source,console]
  44. --------------------------------------------------
  45. POST _transform/ecommerce_transform/_reset
  46. --------------------------------------------------
  47. // TEST[skip:setup kibana sample data]
  48. When the {transform} is reset, you receive the following results:
  49. [source,console-result]
  50. ----
  51. {
  52. "acknowledged" : true
  53. }
  54. ----