Adds data streams, shrink, snapshot and template API (#1768)

* Adds get all data streams

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Added more APIs

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
This commit is contained in:
kolchfa-aws 2022-11-01 09:11:10 -04:00 committed by GitHub
parent 5036cfa12c
commit 2dcd060041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,7 @@ POST /my-old-index/_shrink/my-new-index
```
POST /<index-name>/_shrink/<target-index>
PUT /<index-name>/_shrink/<target-index>
```
When creating new indices with this operation, remember that OpenSearch indices have the following naming restrictions:

View File

@ -13,6 +13,13 @@ Creates a snapshot within an existing repository.
* To view a list of your repositories, see [Get snapshot repository]({{site.url}}{{site.baseurl}}/api-reference/snapshots/get-snapshot-repository).
### Path and HTTP methods
```json
PUT /_snapshot/<repository>/<snapshot>
POST /_snapshot/<repository>/<snapshot>
```
### Path parameters
Parameter | Data Type | Description

View File

@ -140,6 +140,12 @@ GET _data_stream/logs-nginx/_stats
}
```
To see information about all data streams, use the following request:
```json
GET _data_stream
```
### Step 3: Ingest data into the data stream
To ingest data into a data stream, you can use the regular indexing APIs. Make sure every document that you index has a timestamp field. If you try to ingest a document that doesn't have a timestamp field, you get an error.

View File

@ -205,6 +205,15 @@ POST _render/template
}
```
The following render operations are supported:
```json
GET /_render/template
POST /_render/template
GET /_render/template/<id>
POST /_render/template/<id>
```
## Advanced parameter conversion with search templates
You have a lot of different syntax options in Mustache to transpose the input parameters into a query.