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:
parent
5036cfa12c
commit
2dcd060041
@ -28,6 +28,7 @@ POST /my-old-index/_shrink/my-new-index
|
|||||||
|
|
||||||
```
|
```
|
||||||
POST /<index-name>/_shrink/<target-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:
|
When creating new indices with this operation, remember that OpenSearch indices have the following naming restrictions:
|
||||||
|
@ -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).
|
* 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
|
### Path parameters
|
||||||
|
|
||||||
Parameter | Data Type | Description
|
Parameter | Data Type | Description
|
||||||
|
@ -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
|
### 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.
|
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.
|
||||||
|
@ -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
|
## Advanced parameter conversion with search templates
|
||||||
|
|
||||||
You have a lot of different syntax options in Mustache to transpose the input parameters into a query.
|
You have a lot of different syntax options in Mustache to transpose the input parameters into a query.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user