| 1 | package Search::Elasticsearch::Client::6_0::Direct::CCR; | ||
| 2 | $Search::Elasticsearch::Client::6_0::Direct::CCR::VERSION = '6.80'; | ||
| 3 | use Moo; | ||
| 4 | with 'Search::Elasticsearch::Client::6_0::Role::API'; | ||
| 5 | with 'Search::Elasticsearch::Role::Client::Direct'; | ||
| 6 | use Search::Elasticsearch::Util qw(parse_params); | ||
| 7 | use namespace::clean; | ||
| 8 | __PACKAGE__->_install_api('ccr'); | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | =pod | ||
| 13 | |||
| 14 | =encoding UTF-8 | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Search::Elasticsearch::Client::6_0::Direct::CCR - Plugin providing cross-cluster replication APIs for Search::Elasticsearch 6.x | ||
| 19 | |||
| 20 | =head1 VERSION | ||
| 21 | |||
| 22 | version 6.80 | ||
| 23 | |||
| 24 | =head2 DESCRIPTION | ||
| 25 | |||
| 26 | This module provides methods to use the cross-cluster replication feature. | ||
| 27 | |||
| 28 | The full documentation for CCR is available here: | ||
| 29 | L<https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-apis.html> | ||
| 30 | |||
| 31 | =head1 FOLLOW METHODS | ||
| 32 | |||
| 33 | =head2 C<follow()> | ||
| 34 | |||
| 35 | $response = $es->ccr->follow( | ||
| 36 | index => $index, # required | ||
| 37 | body => {...} # required | ||
| 38 | ) | ||
| 39 | |||
| 40 | The C<follow()> method creates a new follower index that is configured to follow the referenced leader index. | ||
| 41 | |||
| 42 | Query string parameters: | ||
| 43 | C<error_trace>, | ||
| 44 | C<filter_path>, | ||
| 45 | C<human>, | ||
| 46 | C<wait_for_active_shards> | ||
| 47 | |||
| 48 | See the L<CCR follow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html> | ||
| 49 | for more information. | ||
| 50 | |||
| 51 | =head2 C<pause_follow()> | ||
| 52 | |||
| 53 | $response = $es->ccr->pause_follow( | ||
| 54 | index => $index, # required | ||
| 55 | ) | ||
| 56 | |||
| 57 | The C<pause_follow()> method pauses following of an index. | ||
| 58 | |||
| 59 | Query string parameters: | ||
| 60 | C<error_trace>, | ||
| 61 | C<filter_path>, | ||
| 62 | C<human> | ||
| 63 | |||
| 64 | See the L<CCR pause follow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html> | ||
| 65 | for more information. | ||
| 66 | |||
| 67 | =head2 C<resume_follow()> | ||
| 68 | |||
| 69 | $response = $es->ccr->resume_follow( | ||
| 70 | index => $index, # required | ||
| 71 | ) | ||
| 72 | |||
| 73 | The C<resume_follow()> method resumes following of an index. | ||
| 74 | |||
| 75 | Query string parameters: | ||
| 76 | C<error_trace>, | ||
| 77 | C<filter_path>, | ||
| 78 | C<human> | ||
| 79 | |||
| 80 | See the L<CCR resume follow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html> | ||
| 81 | for more information. | ||
| 82 | |||
| 83 | =head2 C<unfollow()> | ||
| 84 | |||
| 85 | $response = $es->ccr->unfollow( | ||
| 86 | index => $index, # required | ||
| 87 | ) | ||
| 88 | |||
| 89 | The C<unfollow()> method converts a follower index into a normal index. | ||
| 90 | |||
| 91 | Query string parameters: | ||
| 92 | C<error_trace>, | ||
| 93 | C<filter_path>, | ||
| 94 | C<human> | ||
| 95 | |||
| 96 | See the L<CCR unfollow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html> | ||
| 97 | for more information. | ||
| 98 | |||
| 99 | =head2 C<forget_follower()> | ||
| 100 | |||
| 101 | $response = $es->ccr->forget_follower( | ||
| 102 | index => $index, # required | ||
| 103 | ) | ||
| 104 | |||
| 105 | The C<forget_follower()> method removes the follower retention leases from the leader. | ||
| 106 | |||
| 107 | Query string parameters: | ||
| 108 | C<error_trace>, | ||
| 109 | C<filter_path>, | ||
| 110 | C<human> | ||
| 111 | |||
| 112 | See the L<CCR forget_follower docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html> | ||
| 113 | for more information. | ||
| 114 | |||
| 115 | =head1 STATS METHODS | ||
| 116 | |||
| 117 | =head2 C<stats()> | ||
| 118 | |||
| 119 | $response = $es->ccr->stats() | ||
| 120 | |||
| 121 | The C<stats()> method returns all stats related to cross-cluster replication. | ||
| 122 | |||
| 123 | Query string parameters: | ||
| 124 | C<error_trace>, | ||
| 125 | C<filter_path>, | ||
| 126 | C<human> | ||
| 127 | |||
| 128 | See the L<CCR stats docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html> | ||
| 129 | for more information. | ||
| 130 | |||
| 131 | =head2 C<follow_stats()> | ||
| 132 | |||
| 133 | $response = $es->ccr->follow_stats( | ||
| 134 | index => $index | \@indices, # optional | ||
| 135 | ) | ||
| 136 | |||
| 137 | The C<follow_stats()> method returns shard-level stats about follower indices. | ||
| 138 | |||
| 139 | Query string parameters: | ||
| 140 | C<error_trace>, | ||
| 141 | C<filter_path>, | ||
| 142 | C<human> | ||
| 143 | |||
| 144 | See the L<CCR follow stats docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html> | ||
| 145 | for more information. | ||
| 146 | |||
| 147 | =head2 C<follow_info()> | ||
| 148 | |||
| 149 | $response = $es->ccr->follow_info( | ||
| 150 | index => $index | \@indices, # optional | ||
| 151 | ) | ||
| 152 | |||
| 153 | The C<follow_info()> method returns the parameters and the status for each follower index. | ||
| 154 | |||
| 155 | Query string parameters: | ||
| 156 | C<error_trace>, | ||
| 157 | C<filter_path>, | ||
| 158 | C<human> | ||
| 159 | |||
| 160 | See the L<CCR follow info docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html> | ||
| 161 | for more information. | ||
| 162 | |||
| 163 | =head1 AUTO-FOLLOW METHODS | ||
| 164 | |||
| 165 | =head2 C<put_auto_follow_pattern()> | ||
| 166 | |||
| 167 | $response = $es->ccr->put_auto_follow_pattern( | ||
| 168 | name => $name # required | ||
| 169 | ) | ||
| 170 | |||
| 171 | The C<put_auto_follow_pattern()> method creates a new named collection of auto-follow patterns against the remote cluster specified in the request body. | ||
| 172 | |||
| 173 | Query string parameters: | ||
| 174 | C<error_trace>, | ||
| 175 | C<filter_path>, | ||
| 176 | C<human> | ||
| 177 | |||
| 178 | See the L<CCR put auto follow pattern docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html> | ||
| 179 | for more information. | ||
| 180 | |||
| 181 | =head2 C<get_auto_follow_pattern()> | ||
| 182 | |||
| 183 | $response = $es->ccr->get_auto_follow_pattern( | ||
| 184 | name => $name # optional | ||
| 185 | ) | ||
| 186 | |||
| 187 | The C<get_auto_follow_pattern()> method retrieves a named collection of auto-follow patterns, or all patterns. | ||
| 188 | |||
| 189 | Query string parameters: | ||
| 190 | C<error_trace>, | ||
| 191 | C<filter_path>, | ||
| 192 | C<human> | ||
| 193 | |||
| 194 | See the L<CCR get auto follow pattern docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html> | ||
| 195 | for more information. | ||
| 196 | |||
| 197 | =head2 C<delete_auto_follow_pattern()> | ||
| 198 | |||
| 199 | $response = $es->ccr->delete_auto_follow_pattern( | ||
| 200 | name => $name # required | ||
| 201 | ) | ||
| 202 | |||
| 203 | The C<delete_auto_follow_pattern()> method deletes a named collection of auto-follow patterns. | ||
| 204 | |||
| 205 | Query string parameters: | ||
| 206 | C<error_trace>, | ||
| 207 | C<filter_path>, | ||
| 208 | C<human> | ||
| 209 | |||
| 210 | See the L<CCR delete auto follow pattern docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html> | ||
| 211 | for more information. | ||
| 212 | |||
| 213 | =head1 AUTHOR | ||
| 214 | |||
| 215 | Enrico Zimuel <enrico.zimuel@elastic.co> | ||
| 216 | |||
| 217 | =head1 COPYRIGHT AND LICENSE | ||
| 218 | |||
| 219 | This software is Copyright (c) 2020 by Elasticsearch BV. | ||
| 220 | |||
| 221 | This is free software, licensed under: | ||
| 222 | |||
| 223 | The Apache License, Version 2.0, January 2004 | ||
| 224 | |||
| 225 | =cut | ||
| 226 | |||
| 227 | __END__ |