Auto-generated code for 8.15 (#2350)
This commit is contained in:
12
docs/doc_examples/14a33c364873c2f930ca83d0a3005389.asciidoc
Normal file
12
docs/doc_examples/14a33c364873c2f930ca83d0a3005389.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.cluster.allocationExplain({
|
||||
index: "my-index",
|
||||
shard: 0,
|
||||
primary: false,
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
16
docs/doc_examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc
Normal file
16
docs/doc_examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.slm.putLifecycle({
|
||||
policy_id: "hourly-snapshots",
|
||||
schedule: "1h",
|
||||
name: "<hourly-snap-{now/d}>",
|
||||
repository: "my_repository",
|
||||
config: {
|
||||
indices: ["data-*", "important"],
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
21
docs/doc_examples/8f2875d976332cf5da8fb7764097a307.asciidoc
Normal file
21
docs/doc_examples/8f2875d976332cf5da8fb7764097a307.asciidoc
Normal file
@ -0,0 +1,21 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.indices.putIndexTemplate({
|
||||
name: "template",
|
||||
index_patterns: ["my-data-stream*"],
|
||||
data_stream: {},
|
||||
priority: 500,
|
||||
template: {
|
||||
lifecycle: {
|
||||
data_retention: "7d",
|
||||
},
|
||||
},
|
||||
_meta: {
|
||||
description: "Template with data stream lifecycle",
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
13
docs/doc_examples/e7cfe670b4177d1011076f845ec2916c.asciidoc
Normal file
13
docs/doc_examples/e7cfe670b4177d1011076f845ec2916c.asciidoc
Normal file
@ -0,0 +1,13 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.cluster.putSettings({
|
||||
persistent: {
|
||||
"data_streams.lifecycle.retention.default": "7d",
|
||||
"data_streams.lifecycle.retention.max": "90d",
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
@ -1332,6 +1332,7 @@ If the index has a default ingest pipeline specified, then setting the value to
|
||||
If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
||||
** *`preference` (Optional, string)*: Specifies the node or shard the operation should be performed on.
|
||||
Random by default.
|
||||
** *`q` (Optional, string)*: Query in the Lucene query string syntax.
|
||||
** *`refresh` (Optional, boolean)*: If `true`, Elasticsearch refreshes affected shards to make the operation visible to search.
|
||||
** *`request_cache` (Optional, boolean)*: If `true`, the request cache is used for this request.
|
||||
** *`requests_per_second` (Optional, float)*: The throttle for this request in sub-requests per second.
|
||||
|
||||
Reference in New Issue
Block a user