put_follow.asciidoc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: ccr-put-follow
  3. :request: PutFollowRequest
  4. :response: PutFollowResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Create follower API
  9. [id="{upid}-{api}-request"]
  10. ==== Request
  11. Creates a follower index and makes that index follow a leader index.
  12. ["source","java",subs="attributes,callouts,macros"]
  13. --------------------------------------------------
  14. include-tagged::{doc-tests-file}[{api}-request]
  15. --------------------------------------------------
  16. <1> The name of the remote cluster alias.
  17. <2> The name of the leader in the remote cluster.
  18. <3> The name of the follower index to create.
  19. <4> The number of shard copies that must be active before the call returns.
  20. <5> The settings overrides for the follower index.
  21. [id="{upid}-{api}-response"]
  22. ==== Response
  23. The +{response}+ indicates if the request was received.
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-response]
  27. --------------------------------------------------
  28. <1> Whether the follower index was created.
  29. <2> Whether the follower shards are started.
  30. <3> Whether the follower index started following the leader index.
  31. include::../execution.asciidoc[]