forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
transforms.yaml
281 lines (281 loc) · 9.7 KB
/
transforms.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
openapi: 3.1.0
info:
title: OpenSearch Index Transforms API
description: OpenSearch Index Transforms API.
version: 1.0.0
paths:
/_plugins/_transform:
get:
operationId: transforms.search.0
x-operation-group: transforms.search
x-version-added: '1.0'
description: Returns the details of all transform jobs.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#get-a-transform-jobs-details
parameters:
- $ref: '#/components/parameters/transforms.search::query.from'
- $ref: '#/components/parameters/transforms.search::query.search'
- $ref: '#/components/parameters/transforms.search::query.size'
- $ref: '#/components/parameters/transforms.search::query.sortDirection'
- $ref: '#/components/parameters/transforms.search::query.sortField'
responses:
'200':
$ref: '#/components/responses/transforms.search@200'
/_plugins/_transform/{id}:
get:
operationId: transforms.get.0
x-operation-group: transforms.get
x-version-added: '1.0'
description: Returns the status and metadata of a transform job.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#get-a-transform-jobs-details
parameters:
- $ref: '#/components/parameters/transforms.get::path.id'
responses:
'200':
$ref: '#/components/responses/transforms.get@200'
put:
operationId: transforms.put.0
x-operation-group: transforms.put
x-version-added: '1.0'
description: Create an index transform, or update a transform if `if_seq_no` and `if_primary_term` are provided.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#create-a-transform-job
parameters:
- $ref: '#/components/parameters/transforms.put::path.id'
- $ref: '#/components/parameters/transforms.put::query.if_primary_term'
- $ref: '#/components/parameters/transforms.put::query.if_seq_no'
requestBody:
$ref: '#/components/requestBodies/transforms.put'
responses:
'201':
$ref: '#/components/responses/transforms.put@201'
'200':
$ref: '#/components/responses/transforms.put@200'
delete:
operationId: transforms.delete.0
x-operation-group: transforms.delete
x-version-added: '1.0'
description: Delete an index transform.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#delete-a-transform-job
parameters:
- $ref: '#/components/parameters/transforms.delete::path.id'
responses:
'200':
$ref: '#/components/responses/transforms.delete@200'
/_plugins/_transform/{id}/_start:
post:
operationId: transforms.start.0
x-operation-group: transforms.start
x-version-added: '1.0'
description: Start transform.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#start-a-transform-job
parameters:
- $ref: '#/components/parameters/transforms.start::path.id'
responses:
'200':
$ref: '#/components/responses/transforms.start@200'
/_plugins/_transform/{id}/_stop:
post:
operationId: transforms.stop.0
x-operation-group: transforms.stop
x-version-added: '1.0'
description: Stop transform.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#stop-a-transform-job
parameters:
- $ref: '#/components/parameters/transforms.stop::path.id'
responses:
'200':
$ref: '#/components/responses/transforms.stop@200'
/_plugins/_transform/{id}/_explain:
get:
operationId: transforms.explain.0
x-operation-group: transforms.explain
x-version-added: '1.0'
description: Returns the status and metadata of a transform job.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#get-the-status-of-a-transform-job
parameters:
- $ref: '#/components/parameters/transforms.explain::path.id'
responses:
'200':
$ref: '#/components/responses/transforms.explain@200'
/_plugins/_transform/_preview:
post:
operationId: transforms.preview.0
x-operation-group: transforms.preview
x-version-added: '1.0'
description: Returns a preview of what a transformed index would look like.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#preview-a-transform-jobs-results
requestBody:
$ref: '#/components/requestBodies/transforms.preview'
responses:
'200':
$ref: '#/components/responses/transforms.preview@200'
components:
requestBodies:
transforms.preview:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/TransformRequest'
transforms.put:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/TransformRequest'
responses:
transforms.search@200:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/TransformsResponse'
transforms.get@200:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/TransformResponse'
transforms.put@200:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/TransformResponse'
transforms.put@201:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/TransformResponse'
transforms.delete@200:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/DeleteTransformsResponse'
transforms.start@200:
content:
application/json:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/AcknowledgedResponseBase'
transforms.stop@200:
content:
application/json:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/AcknowledgedResponseBase'
transforms.explain@200:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/ExplainResponse'
transforms.preview@200:
content:
application/json:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/Preview'
parameters:
transforms.get::path.id:
name: id
in: path
description: Transform to access
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
style: simple
transforms.put::path.id:
name: id
in: path
description: Transform to create/update
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
style: simple
transforms.delete::path.id:
name: id
in: path
description: Transform to delete
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
style: simple
transforms.start::path.id:
name: id
in: path
description: Transform to start
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
style: simple
transforms.stop::path.id:
name: id
in: path
description: Transform to stop
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
style: simple
transforms.explain::path.id:
name: id
in: path
description: Transform to explain
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
style: simple
transforms.put::query.if_seq_no:
name: if_seq_no
in: query
description: Only perform the operation if the document has this sequence number.
required: false
schema:
$ref: '../schemas/_common.yaml#/components/schemas/SequenceNumber'
style: form
transforms.put::query.if_primary_term:
name: if_primary_term
in: query
description: Only perform the operation if the document has this primary term.
required: false
schema:
type: number
style: form
transforms.search::query.size:
name: size
in: query
description: Specifies the number of transforms to return. Default is `10`.
required: false
schema:
type: number
style: form
transforms.search::query.from:
name: from
in: query
description: The starting transform to return. Default is `0`.
required: false
schema:
type: number
style: form
transforms.search::query.search:
name: search
in: query
description: The search term to use to filter results.
required: false
schema:
type: string
style: form
transforms.search::query.sortField:
name: sortField
in: query
description: The field to sort results with.
required: false
schema:
type: string
style: form
transforms.search::query.sortDirection:
name: sortDirection
in: query
description: Specifies the direction to sort results in. Can be `ASC` or `DESC`. Default is `ASC`.
required: false
schema:
type: string
style: form