You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
Get information about one or more index templates.
6427
6428
6428
6429
IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
@@ -6858,7 +6859,7 @@ will be closed temporarily and then reopened in order to apply the changes.
6858
6859
timeout expires, the request fails and returns an error.
Verify the integrity of the contents of a snapshot repository.
13860
+
13861
+
This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail.
13862
+
13863
+
If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its `read_only` option to `true`, and use this API to verify its integrity.
13864
+
Until you do so:
13865
+
13866
+
* It may not be possible to restore some snapshots from this repository.
13867
+
* Searchable snapshots may report errors when searched or may have unassigned shards.
13868
+
* Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored.
13869
+
* Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk.
13870
+
* Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents.
13871
+
13872
+
If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage.
13873
+
The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred.
13874
+
You must also identify what caused the damage and take action to prevent it from happening again.
13875
+
13876
+
If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations.
13877
+
In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository.
13878
+
13879
+
Avoid all operations which write to the repository while the verify repository integrity API is running.
13880
+
If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes.
13881
+
It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting.
13882
+
13883
+
NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.
13884
+
13885
+
NOTE: This API may not work correctly in a mixed-version cluster.
13886
+
13887
+
The default values for the parameters of this API are designed to limit the impact of the integrity verification on other activities in your cluster.
13888
+
For instance, by default it will only use at most half of the `snapshot_meta` threads to verify the integrity of each snapshot, allowing other snapshot operations to use the other half of this thread pool.
13889
+
If you modify these parameters to speed up the verification process, you risk disrupting other snapshot-related operations in your cluster.
13890
+
For large repositories, consider setting up a separate single-node Elasticsearch cluster just for running the integrity verification API.
13891
+
13892
+
The response exposes implementation details of the analysis which may change from version to version.
13893
+
The response body format is therefore not considered stable and may be different in newer versions.
- **`repository` (string \| string[])**: The name of the snapshot repository.
13905
+
- **`blob_thread_pool_concurrency` (Optional, number)**: If `verify_blob_contents` is `true`, this parameter specifies how many blobs to verify at once.
13906
+
- **`index_snapshot_verification_concurrency` (Optional, number)**: The maximum number of index snapshots to verify concurrently within each index verification.
13907
+
- **`index_verification_concurrency` (Optional, number)**: The number of indices to verify concurrently.
13908
+
The default behavior is to use the entire `snapshot_meta` thread pool.
13909
+
- **`max_bytes_per_sec` (Optional, string)**: If `verify_blob_contents` is `true`, this parameter specifies the maximum amount of data that Elasticsearch will read from the repository every second.
13910
+
- **`max_failed_shard_snapshots` (Optional, number)**: The number of shard snapshot failures to track during integrity verification, in order to avoid excessive resource usage.
13911
+
If your repository contains more than this number of shard snapshot failures, the verification will fail.
13912
+
- **`meta_thread_pool_concurrency` (Optional, number)**: The maximum number of snapshot metadata operations to run concurrently.
13913
+
The default behavior is to use at most half of the `snapshot_meta` thread pool at once.
13914
+
- **`snapshot_verification_concurrency` (Optional, number)**: The number of snapshots to verify concurrently.
13915
+
The default behavior is to use at most half of the `snapshot_meta` thread pool at once.
13916
+
- **`verify_blob_contents` (Optional, boolean)**: Indicates whether to verify the checksum of every data blob in the repository.
13917
+
If this feature is enabled, Elasticsearch will read the entire repository contents, which may be extremely slow and expensive.
13918
+
13856
13919
## client.snapshot.restore [_snapshot.restore]
13857
13920
Restore a snapshot.
13858
13921
Restore a snapshot of a cluster or data streams and indices.
Copy file name to clipboardExpand all lines: src/api/api/indices.ts
+107-3Lines changed: 107 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -422,6 +422,13 @@ export default class Indices {
422
422
body: [],
423
423
query: []
424
424
},
425
+
'indices.get_data_stream_settings': {
426
+
path: [
427
+
'name'
428
+
],
429
+
body: [],
430
+
query: []
431
+
},
425
432
'indices.get_field_mapping': {
426
433
path: [
427
434
'fields',
@@ -580,6 +587,13 @@ export default class Indices {
580
587
body: [],
581
588
query: []
582
589
},
590
+
'indices.put_data_stream_settings': {
591
+
path: [
592
+
'name'
593
+
],
594
+
body: [],
595
+
query: []
596
+
},
583
597
'indices.put_index_template': {
584
598
path: [
585
599
'name'
@@ -1676,7 +1690,7 @@ export default class Indices {
1676
1690
}
1677
1691
1678
1692
/**
1679
-
* Delete a legacy index template.
1693
+
* Delete a legacy index template. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
1680
1694
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-template | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
2548
+
}
2549
+
2491
2550
/**
2492
2551
* Get mapping definitions. Retrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices. This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields.
2493
2552
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping | Elasticsearch API documentation}
@@ -2753,7 +2812,7 @@ export default class Indices {
2753
2812
}
2754
2813
2755
2814
/**
2756
-
* Get index templates. Get information about one or more index templates. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
2815
+
* Get legacy index templates. Get information about one or more index templates. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
2757
2816
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-template | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
3310
+
}
3311
+
3208
3312
/**
3209
3313
* Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices. Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. Index templates are applied during data stream or index creation. For data streams, these settings and mappings are applied when the stream's backing indices are created. Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. You can use C-style `/* *\/` block comments in index templates. You can include comments anywhere in the request body, except before the opening curly bracket. **Multiple matching templates** If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. **Composing aliases, mappings, and settings** When multiple component templates are specified in the `composed_of` field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. Any mappings, settings, or aliases from the parent index template are merged in next. Finally, any configuration on the index request itself is merged. Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. This recursive merging strategy applies not only to field mappings, but also root options like `dynamic_templates` and `meta`. If an earlier component contains a `dynamic_templates` block, then by default new `dynamic_templates` entries are appended onto the end. If an entry already exists with the same key, then it is overwritten by the new definition.
3210
3314
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template | Elasticsearch API documentation}
@@ -3374,7 +3478,7 @@ export default class Indices {
3374
3478
}
3375
3479
3376
3480
/**
3377
-
* Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices. Elasticsearch applies templates to new indices based on an index pattern that matches the index name. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. Composable templates always take precedence over legacy templates. If no composable template matches a new index, matching legacy templates are applied according to their order. Index templates are only applied during index creation. Changes to index templates do not affect existing indices. Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. You can use C-style `/* *\/` block comments in index templates. You can include comments anywhere in the request body, except before the opening curly bracket. **Indices matching multiple templates** Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.
3481
+
* Create or update a legacy index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices. Elasticsearch applies templates to new indices based on an index pattern that matches the index name. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. Composable templates always take precedence over legacy templates. If no composable template matches a new index, matching legacy templates are applied according to their order. Index templates are only applied during index creation. Changes to index templates do not affect existing indices. Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. You can use C-style `/* *\/` block comments in index templates. You can include comments anywhere in the request body, except before the opening curly bracket. **Indices matching multiple templates** Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.
3378
3482
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-template | Elasticsearch API documentation}
0 commit comments