put_follow.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: ccr-put-follow
  3. :request: PutFollowRequest
  4. :response: PutFollowResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Put Follow API
  8. [id="{upid}-{api}-request"]
  9. ==== Request
  10. The Put Follow API allows creates a follower index and make that index follow a leader index.
  11. ["source","java",subs="attributes,callouts,macros"]
  12. --------------------------------------------------
  13. include-tagged::{doc-tests-file}[{api}-request]
  14. --------------------------------------------------
  15. <1> The name of the remote cluster alias.
  16. <2> The name of the leader in the remote cluster.
  17. <3> The name of the follower index that gets created as part of the put follow API call.
  18. [id="{upid}-{api}-response"]
  19. ==== Response
  20. The returned +{response}+ indicates if the put follow request was received.
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-response]
  24. --------------------------------------------------
  25. <1> Whether the follower index was created.
  26. <2> Whether the follower shards are started.
  27. <3> Whether the follower index started following the leader index.
  28. include::../execution.asciidoc[]