promote-data-stream-api.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [role="xpack"]
  2. [[promote-data-stream-api]]
  3. === Promote data stream API
  4. ++++
  5. <titleabbrev>Promote data stream</titleabbrev>
  6. ++++
  7. .New API reference
  8. [sidebar]
  9. --
  10. For the most up-to-date API details, refer to {api-es}/group/endpoint-data-stream[Data stream APIs].
  11. --
  12. The purpose of the promote <<data-streams,data stream>> API is to turn
  13. a data stream that is replicated by CCR into a regular
  14. data stream.
  15. Via CCR Auto Following, a data stream from a remote cluster
  16. can be replicated to the local cluster. These data streams
  17. can't be rolled over in the local cluster. Only if the upstream
  18. data stream rolls over then these replicated data streams roll
  19. over as well. In the event that the remote cluster is no longer
  20. available, the data stream in the local cluster can be promoted
  21. to a regular data stream, which allows these data streams to
  22. be rolled over in the local cluster.
  23. [source,console]
  24. ----
  25. POST /_data_stream/_promote/my-data-stream
  26. ----
  27. // TEST[catch:missing]
  28. [[promote-data-stream-api-request]]
  29. ==== {api-request-title}
  30. `POST /_data_stream/_promote/<data-stream>`
  31. [[promote-data-stream-api-prereqs]]
  32. ==== {api-prereq-title}
  33. * If the {es} {security-features} are enabled, you must have the `manage_follow_index`
  34. <<privileges-list-cluster,cluster privilege>> to use this API.
  35. [[promote-data-stream-api-path-params]]
  36. ==== {api-path-parms-title}
  37. `<data-stream>`::
  38. (Required, string)
  39. The name of the data stream to promote.