Method: Antbird::RestApi::RestApiOpensearchV2_6#indices_clone
- Defined in:
- lib/antbird/rest_api/rest_api_opensearch_v2_6.rb
#indices_clone(params = {}) ⇒ Object
indices.clone href="https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html">www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html”, “description”=>“Clones an index”
576 577 578 579 580 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v2_6.rb', line 576 def indices_clone(params = {}) api_name = 'indices.clone' api_spec = @api_specs[api_name] ||= {"documentation"=>{"url"=>"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html", "description"=>"Clones an index"}, "stability"=>"stable", "url"=>{"paths"=>[{"path"=>"/{index}/_clone/{target}", "methods"=>["PUT", "POST"], "parts"=>{"index"=>{"type"=>"string", "description"=>"The name of the source index to clone"}, "target"=>{"type"=>"string", "description"=>"The name of the target index to clone into"}}}]}, "params"=>{"timeout"=>{"type"=>"time", "description"=>"Explicit operation timeout"}, "master_timeout"=>{"type"=>"time", "description"=>"Specify timeout for connection to master", "deprecated"=>{"version"=>"2.0.0", "description"=>"To promote inclusive language, use 'cluster_manager_timeout' instead."}}, "cluster_manager_timeout"=>{"type"=>"time", "description"=>"Specify timeout for connection to cluster-manager node"}, "wait_for_active_shards"=>{"type"=>"string", "description"=>"Set the number of active shards to wait for on the cloned index before the operation returns."}}, "body"=>{"description"=>"The configuration for the target index (`settings` and `aliases`)"}} request(api_name, api_spec, params) end |