[[reference-snapshot-restore]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.snapshot.restore Restores a snapshot. {ref}/modules-snapshots.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SnapshotRestoreRequest, options?): Promise ---- [discrete] ===== `SnapshotRestoreRequest` [source,ts] ---- interface SnapshotRestoreRequest extends <> { repository: <> snapshot: <> master_timeout?: <> wait_for_completion?: boolean feature_states?: string[] ignore_index_settings?: string[] ignore_unavailable?: boolean include_aliases?: boolean include_global_state?: boolean index_settings?: IndicesIndexSettings indices?: <> partial?: boolean rename_pattern?: string rename_replacement?: string } ---- [discrete] ===== `SnapshotRestoreResponse` [source,ts] ---- interface SnapshotRestoreResponse { accepted?: boolean snapshot?: SnapshotRestoreSnapshotRestore } ----