Skip to content

Commit bec21a2

Browse files
committed
Add links to serverless API docs
1 parent 92b4a86 commit bec21a2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

manage-data/data-store/data-streams/set-up-data-stream.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ To create a component template in {{kib}}:
118118
1. Go to the **Index Management** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
119119
1. In the **Index Templates** tab, click **Create component template**.
120120

121-
You can also use the [create component template](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template) API.
121+
You can also use the [create component template](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template) API for {{es}} or the [create component template](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-cluster-put-component-template) API for {{serverless-full}}.
122122

123123
To create a component template for mappings, use this query:
124124

@@ -177,7 +177,7 @@ To create an index template in {{kib}}:
177177
1. Go to the **Index Management** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
178178
1. In the **Index Templates** tab, click **Create template**.
179179

180-
You can also use the [create index template API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template). Include the `data_stream` object to enable data streams.
180+
You can also use the [create an index template](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template) API for {{es}} or [create an index template](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-put-index-template) API for {{serverless-full}}. Include the `data_stream` object to enable data streams.
181181

182182
```console
183183
PUT _index_template/my-index-template
@@ -196,7 +196,7 @@ PUT _index_template/my-index-template
196196

197197
## Create the data stream [create-data-stream]
198198

199-
[Indexing requests](../data-streams/use-data-stream.md#add-documents-to-a-data-stream) [Indexing requests](./use-data-stream.md#add-documents-to-a-data-stream) add documents to a data stream. These requests must use an `op_type` of `create`. Documents must include a `@timestamp` field.
199+
[Indexing requests](../data-streams/use-data-stream.md#add-documents-to-a-data-stream) add documents to a data stream. These requests must use an `op_type` of `create`. Documents must include a `@timestamp` field.
200200

201201
To automatically create your data stream, submit an indexing request that targets the stream’s name. This name must match one of your index template’s index patterns.
202202

@@ -214,7 +214,7 @@ POST my-data-stream/_doc
214214
}
215215
```
216216

217-
You can also manually create the stream using the [create data stream API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-data-stream). The stream’s name must still match one of your template’s index patterns.
217+
You can also manually create the stream using the [create data stream](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-data-stream) API for {{es}} or the [create a data stream](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-create-data-stream) API for {{serverless-full}}. The stream’s name must still match one of your template’s index patterns.
218218

219219
```console
220220
PUT _data_stream/my-data-stream
@@ -233,7 +233,7 @@ For an example, see [Data stream privileges](../../../deploy-manage/users-roles/
233233

234234
Prior to {{es}} 7.9, you’d typically use an [index alias with a write index](../../lifecycle/index-lifecycle-management/tutorial-time-series-without-data-streams.md) to manage time series data. Data streams replace this functionality, require less maintenance, and automatically integrate with [data tiers](../../lifecycle/data-tiers.md).
235235

236-
To convert an index alias with a write index to a data stream with the same name, use the [convert an index alias to a data stream](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream) API for {{stack}} or the [convert an index alias to a data stream](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-migrate-to-data-stream) API for {{serverless-full}}. During conversion, the alias’s indices become hidden backing indices for the stream. The alias’s write index becomes the stream’s write index. The stream still requires a matching index template with data stream enabled.
236+
To convert an index alias with a write index to a data stream with the same name, use the [convert an index alias to a data stream](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream) API for {{es}} or the [convert an index alias to a data stream](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-migrate-to-data-stream) API for {{serverless-full}}. During conversion, the alias’s indices become hidden backing indices for the stream. The alias’s write index becomes the stream’s write index. The stream still requires a matching index template with data stream enabled.
237237

238238
```console
239239
POST _data_stream/_migrate/my-time-series-data
@@ -247,7 +247,7 @@ To get information about a data stream in {{kib}}:
247247
1. Go to the **Index Management** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
248248
1. In the **Data Streams** tab, click the data stream’s name.
249249

250-
You can also use the [get data stream API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream).
250+
You can also use the [get data stream](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream) API for {{es}} or the [get data streams](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-get-data-stream) API for {{serverless-full}}.
251251

252252
```console
253253
GET _data_stream/my-data-stream
@@ -261,7 +261,7 @@ To delete a data stream and its backing indices in {{kib}}:
261261
1. Go to the **Index Management** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
262262
1. In the **Data Streams** view, click the trash icon. The icon only displays if you have the `delete_index` [security privilege](elasticsearch://reference/elasticsearch/security-privileges.md) for the data stream.
263263

264-
You can also use the [delete data stream API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-stream).
264+
You can also use the [delete data stream API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-stream) API for {{es}} or the [delete data streams](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-delete-data-stream) API for {{serverless-full}}.
265265

266266
```console
267267
DELETE _data_stream/my-data-stream

0 commit comments

Comments
 (0)