From 86202b8df008caa6982f078e2f5009a7229b1588 Mon Sep 17 00:00:00 2001 From: keithhc2 Date: Tue, 8 Jun 2021 14:48:50 -0700 Subject: [PATCH 1/2] Fixed API endpoints --- docs/im/index-transforms/transforms-apis.md | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/im/index-transforms/transforms-apis.md b/docs/im/index-transforms/transforms-apis.md index f7065f23..d7b3b3ac 100644 --- a/docs/im/index-transforms/transforms-apis.md +++ b/docs/im/index-transforms/transforms-apis.md @@ -2,7 +2,7 @@ layout: default title: Transforms APIs nav_order: 45 -parent: Index Transforms +parent: Index transforms grand_parent: Index management has_toc: true --- @@ -22,7 +22,7 @@ Creates a transform job. **Sample Request** ```json -PUT _opendistro/_transform/ +PUT _plugins/_transform/ { "transform": { @@ -146,7 +146,7 @@ Updates a transform job if `transform_id` already exists. **Sample Request** ```json -PUT _opendistro/_transform/ +PUT _plugins/_transform/ { "transform": { @@ -261,7 +261,7 @@ Returns a transform job's details. **Sample Request** ```json -GET _opendistro/_transform/ +GET _plugins/_transform/ ``` **Sample Response** @@ -326,7 +326,7 @@ You can also get details of all transform jobs by omitting `transform_id`. **Sample Request** ```json -GET _opendistro/_transform/ +GET _plugins/_transform/ ``` **Sample Response** @@ -405,7 +405,7 @@ For example, this request returns two results starting from the eighth index. **Sample Request** ```json -GET /_opendistro/_transform/?size=2&from=8 +GET _plugins/_transform?size=2&from=8 ``` **Sample Response** @@ -527,7 +527,7 @@ Transform jobs created using the API are automatically enabled, but if you ever **Sample Request** ```json -POST _opendistro//_start +POST _plugins/_transform//_start ``` **Sample Response** @@ -545,7 +545,7 @@ Stops/disables a transform job. **Sample Request** ```json -POST _opendistro//_stop +POST _plugins/_transform//_stop ``` **Sample Response** @@ -563,7 +563,7 @@ Returns the status and metadata of a transform job. **Sample Request** ```json -GET _opendistro//_explain +GET _plugins/_transform//_explain ``` **Sample Response** @@ -596,7 +596,7 @@ Returns a preview of what a transformed index would look like. **Sample Request** ```json -POST _opendistro/_transform/_preview +POST _plugins/_transform/_preview { "transform": { @@ -681,7 +681,7 @@ Deletes a transform job. This operation does not delete the source or target ind **Sample Request** ```json -DELETE _opendistro/_transform/ +DELETE _plugins/_transform/ ``` **Sample Response** @@ -693,7 +693,7 @@ DELETE _opendistro/_transform/ "items": [ { "delete": { - "_index": ".opendistro-ism-config", + "_index": ".opensearch-ism-config", "_type": "_doc", "_id": "sample", "_version": 4, From bdaf73283428f4201a83a6ff024bb87057861973 Mon Sep 17 00:00:00 2001 From: Keith Chan <12404772+keithhc2@users.noreply.github.com> Date: Tue, 8 Jun 2021 14:50:25 -0700 Subject: [PATCH 2/2] Fixed a typo --- docs/im/index-transforms/transforms-apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/im/index-transforms/transforms-apis.md b/docs/im/index-transforms/transforms-apis.md index d7b3b3ac..074d92e4 100644 --- a/docs/im/index-transforms/transforms-apis.md +++ b/docs/im/index-transforms/transforms-apis.md @@ -326,7 +326,7 @@ You can also get details of all transform jobs by omitting `transform_id`. **Sample Request** ```json -GET _plugins/_transform/ +GET _plugins/_transform/ ``` **Sample Response**