put_follow.asciidoc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <4> The number of active shard copies to wait for before the put follow API returns a
  19. response, as an `ActiveShardCount`
  20. [id="{upid}-{api}-response"]
  21. ==== Response
  22. The returned +{response}+ indicates if the put follow request was received.
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-response]
  26. --------------------------------------------------
  27. <1> Whether the follower index was created.
  28. <2> Whether the follower shards are started.
  29. <3> Whether the follower index started following the leader index.
  30. include::../execution.asciidoc[]