[[reference-snapshot-create]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.create Creates a snapshot in a repository. {ref}/modules-snapshots.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SnapshotCreateRequest, options?): Promise ---- [discrete] ===== `SnapshotCreateRequest` [source,ts] ---- interface SnapshotCreateRequest extends <> { repository: <> snapshot: <> master_timeout?: <> wait_for_completion?: boolean ignore_unavailable?: boolean include_global_state?: boolean indices?: <> feature_states?: string[] metadata?: <> partial?: boolean } ---- [discrete] ===== `SnapshotCreateResponse` [source,ts] ---- interface SnapshotCreateResponse { accepted?: boolean snapshot?: SnapshotSnapshotInfo } ----