1
0

put_follow.asciidoc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --
  2. :api: ccr-put-follow
  3. :request: PutFollowRequest
  4. :response: PutFollowResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Put Follow API
  9. [id="{upid}-{api}-request"]
  10. ==== Request
  11. The Put Follow API allows creates a follower index and make 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 that gets created as part of the put follow API call.
  19. <4> The number of active shard copies to wait for before the put follow API returns a
  20. response, as an `ActiveShardCount`
  21. [id="{upid}-{api}-response"]
  22. ==== Response
  23. The returned +{response}+ indicates if the put follow 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[]