Dangling Indices

class elasticsearch.client.DanglingIndicesClient(client)
Parameters:

client (BaseClient)

delete_dangling_index(*, index_uuid, accept_data_loss, error_trace=None, filter_path=None, human=None, master_timeout=None, pretty=None, timeout=None)

Deletes the specified dangling index

https://www.elastic.co/guide/en/elasticsearch/reference/8.14/modules-gateway-dangling-indices.html

Parameters:
  • index_uuid (str) – The UUID of the dangling index

  • accept_data_loss (bool) – Must be set to true in order to delete the dangling index

  • master_timeout (Literal[-1] | ~typing.Literal[0] | str | None) – Specify timeout for connection to master

  • timeout (Literal[-1] | ~typing.Literal[0] | str | None) – Explicit operation timeout

  • error_trace (bool | None)

  • filter_path (str | Sequence[str] | None)

  • human (bool | None)

  • pretty (bool | None)

Return type:

ObjectApiResponse[Any]

import_dangling_index(*, index_uuid, accept_data_loss, error_trace=None, filter_path=None, human=None, master_timeout=None, pretty=None, timeout=None)

Imports the specified dangling index

https://www.elastic.co/guide/en/elasticsearch/reference/8.14/modules-gateway-dangling-indices.html

Parameters:
  • index_uuid (str) – The UUID of the dangling index

  • accept_data_loss (bool) – Must be set to true in order to import the dangling index

  • master_timeout (Literal[-1] | ~typing.Literal[0] | str | None) – Specify timeout for connection to master

  • timeout (Literal[-1] | ~typing.Literal[0] | str | None) – Explicit operation timeout

  • error_trace (bool | None)

  • filter_path (str | Sequence[str] | None)

  • human (bool | None)

  • pretty (bool | None)

Return type:

ObjectApiResponse[Any]

list_dangling_indices(*, error_trace=None, filter_path=None, human=None, pretty=None)

Returns all dangling indices.

https://www.elastic.co/guide/en/elasticsearch/reference/8.14/modules-gateway-dangling-indices.html

Parameters:
Return type:

ObjectApiResponse[Any]