63 lines
4.1 KiB
Plaintext
63 lines
4.1 KiB
Plaintext
[[reference-indices-create_data_stream]]
|
|
|
|
////////
|
|
===========================================================================================================================
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
|
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
|
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
|
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
|
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
|
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
|
|| ||
|
|
|| ||
|
|
|| 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 <version> ||
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
===========================================================================================================================
|
|
////////
|
|
|
|
[discrete]
|
|
=== client.indices.createDataStream
|
|
|
|
Create a data stream. Creates a data stream. You must have a matching index template with data stream enabled.
|
|
|
|
{ref}/data-streams.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(IndicesCreateDataStreamRequest, options?): Promise<IndicesCreateDataStreamResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `IndicesCreateDataStreamRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface IndicesCreateDataStreamRequest extends <<shared-type-request-base, RequestBase>> {
|
|
name: <<shared-type-data-stream-name, DataStreamName>>
|
|
master_timeout?: <<shared-type-duration, Duration>>
|
|
timeout?: <<shared-type-duration, Duration>>
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `IndicesCreateDataStreamResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
type IndicesCreateDataStreamResponse = <<shared-type-acknowledged-response-base, AcknowledgedResponseBase>>
|
|
----
|
|
|