module Elasticsearch::API::DanglingIndices::Actions
Public Instance Methods
Deletes the specified dangling index
@option arguments [String] :index_uuid The UUID of the dangling index @option arguments [Boolean] :accept_data_loss Must be set to true in order to delete the dangling index @option arguments [Time] :timeout Explicit operation timeout @option arguments [Time] :master_timeout Specify timeout for connection to master @option arguments [Hash] :headers Custom HTTP headers
@see www.elastic.co/guide/en/elasticsearch/reference/7.15/modules-gateway-dangling-indices.html
# File lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb, line 32 def delete_dangling_index(arguments = {}) raise ArgumentError, "Required argument 'index_uuid' missing" unless arguments[:index_uuid] headers = arguments.delete(:headers) || {} arguments = arguments.clone _index_uuid = arguments.delete(:index_uuid) method = Elasticsearch::API::HTTP_DELETE path = "_dangling/#{Utils.__listify(_index_uuid)}" params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end
Imports the specified dangling index
@option arguments [String] :index_uuid The UUID of the dangling index @option arguments [Boolean] :accept_data_loss Must be set to true in order to import the dangling index @option arguments [Time] :timeout Explicit operation timeout @option arguments [Time] :master_timeout Specify timeout for connection to master @option arguments [Hash] :headers Custom HTTP headers
@see www.elastic.co/guide/en/elasticsearch/reference/7.15/modules-gateway-dangling-indices.html
# File lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb, line 32 def import_dangling_index(arguments = {}) raise ArgumentError, "Required argument 'index_uuid' missing" unless arguments[:index_uuid] headers = arguments.delete(:headers) || {} arguments = arguments.clone _index_uuid = arguments.delete(:index_uuid) method = Elasticsearch::API::HTTP_POST path = "_dangling/#{Utils.__listify(_index_uuid)}" params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end
Returns all dangling indices.
@option arguments [Hash] :headers Custom HTTP headers
@see www.elastic.co/guide/en/elasticsearch/reference/7.15/modules-gateway-dangling-indices.html
# File lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb, line 28 def list_dangling_indices(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone method = Elasticsearch::API::HTTP_GET path = "_dangling" params = {} body = nil perform_request(method, path, params, body, headers).body end