Merge pull request #47 from opensearch-project/index-transforms
Fixed API endpoints
This commit is contained in:
commit
105ac1eeb7
|
@ -22,7 +22,7 @@ Creates a transform job.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
PUT _opendistro/_transform/<transform_id>
|
PUT _plugins/_transform/<transform_id>
|
||||||
|
|
||||||
{
|
{
|
||||||
"transform": {
|
"transform": {
|
||||||
|
@ -146,7 +146,7 @@ Updates a transform job if `transform_id` already exists.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
PUT _opendistro/_transform/<transform_id>
|
PUT _plugins/_transform/<transform_id>
|
||||||
|
|
||||||
{
|
{
|
||||||
"transform": {
|
"transform": {
|
||||||
|
@ -261,7 +261,7 @@ Returns a transform job's details.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
GET _opendistro/_transform/<transform_id>
|
GET _plugins/_transform/<transform_id>
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -326,7 +326,7 @@ You can also get details of all transform jobs by omitting `transform_id`.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
GET _opendistro/_transform/
|
GET _plugins/_transform/
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -405,7 +405,7 @@ For example, this request returns two results starting from the eighth index.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
GET /_opendistro/_transform/?size=2&from=8
|
GET _plugins/_transform?size=2&from=8
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -527,7 +527,7 @@ Transform jobs created using the API are automatically enabled, but if you ever
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
POST _opendistro/<transform_id>/_start
|
POST _plugins/_transform/<transform_id>/_start
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -545,7 +545,7 @@ Stops/disables a transform job.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
POST _opendistro/<transform_id>/_stop
|
POST _plugins/_transform/<transform_id>/_stop
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -563,7 +563,7 @@ Returns the status and metadata of a transform job.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
GET _opendistro/<transform_id>/_explain
|
GET _plugins/_transform/<transform_id>/_explain
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -596,7 +596,7 @@ Returns a preview of what a transformed index would look like.
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
POST _opendistro/_transform/_preview
|
POST _plugins/_transform/_preview
|
||||||
|
|
||||||
{
|
{
|
||||||
"transform": {
|
"transform": {
|
||||||
|
@ -681,7 +681,7 @@ Deletes a transform job. This operation does not delete the source or target ind
|
||||||
**Sample Request**
|
**Sample Request**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
DELETE _opendistro/_transform/<transform_id>
|
DELETE _plugins/_transform/<transform_id>
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sample Response**
|
**Sample Response**
|
||||||
|
@ -693,7 +693,7 @@ DELETE _opendistro/_transform/<transform_id>
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"delete": {
|
"delete": {
|
||||||
"_index": ".opendistro-ism-config",
|
"_index": ".opensearch-ism-config",
|
||||||
"_type": "_doc",
|
"_type": "_doc",
|
||||||
"_id": "sample",
|
"_id": "sample",
|
||||||
"_version": 4,
|
"_version": 4,
|
||||||
|
|
Loading…
Reference in New Issue