@@ -14,31 +14,46 @@ paths:
14
14
responses :
15
15
' 200 ' :
16
16
$ref : ' #/components/responses/ism.get_policies@200'
17
+ put :
18
+ operationId : ism.put_policies.0
19
+ x-operation-group : ism.put_policies
20
+ description : Gets the policies.
21
+ externalDocs :
22
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#create-policy
23
+ requestBody :
24
+ $ref : ' #/components/requestBodies/ism.put_policies'
25
+ parameters :
26
+ - $ref : ' #/components/parameters/ism.put_policies::query.if_primary_term'
27
+ - $ref : ' #/components/parameters/ism.put_policies::query.if_seq_no'
28
+ - $ref : ' #/components/parameters/ism.put_policies::query.policyID'
29
+ responses :
30
+ ' 200 ' :
31
+ $ref : ' #/components/responses/ism.put_policies@200'
17
32
/_plugins/_ism/policies/{policy_id} :
18
33
get :
19
34
operationId : ism.get_policy.0
20
35
x-operation-group : ism.get_policy
21
- description : Gets the policy.
36
+ description : Creates or updates a policy.
22
37
externalDocs :
23
- url : https://opensearch.org/docs/latest/im-plugin/ism/api/#get -policy
38
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#put -policy
24
39
parameters :
25
40
- $ref : ' #/components/parameters/ism.get_policy::path.policy_id'
26
41
responses :
27
42
' 200 ' :
28
43
$ref : ' #/components/responses/ism.get_policy@200'
29
44
head :
30
- operationId : ism.head_policy .0
31
- x-operation-group : ism.head_policy
45
+ operationId : ism.exists_policy .0
46
+ x-operation-group : ism.exists_policy
32
47
description : Checks whether the policy exists.
33
48
externalDocs :
34
49
url : https://opensearch.org/docs/latest/im-plugin/ism/api/#get-policy
35
50
parameters :
36
- - $ref : ' #/components/parameters/ism.head_policy ::path.policy_id'
51
+ - $ref : ' #/components/parameters/ism.exists_policy ::path.policy_id'
37
52
responses :
38
53
' 200 ' :
39
- $ref : ' #/components/responses/ism.head_policy @200'
54
+ $ref : ' #/components/responses/ism.exists_policy @200'
40
55
' 404 ' :
41
- $ref : ' #/components/responses/ism.head_policy @404'
56
+ $ref : ' #/components/responses/ism.exists_policy @404'
42
57
put :
43
58
operationId : ism.put_policy.0
44
59
x-operation-group : ism.put_policy
@@ -67,6 +82,20 @@ paths:
67
82
responses :
68
83
' 200 ' :
69
84
$ref : ' #/components/responses/ism.delete_policy@200'
85
+ /_plugins/_ism/add :
86
+ post :
87
+ operationId : ism.add.0
88
+ x-operation-group : ism.add
89
+ description : Adds a policy to an index.
90
+ externalDocs :
91
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#add-policy
92
+ parameters :
93
+ - $ref : ' #/components/parameters/ism.add::query.index'
94
+ requestBody :
95
+ $ref : ' #/components/requestBodies/ism.add'
96
+ responses :
97
+ ' 200 ' :
98
+ $ref : ' #/components/responses/ism.add@200'
70
99
/_plugins/_ism/add/{index} :
71
100
post :
72
101
operationId : ism.add_policy.0
@@ -81,6 +110,18 @@ paths:
81
110
responses :
82
111
' 200 ' :
83
112
$ref : ' #/components/responses/ism.add_policy@200'
113
+ /_plugins/_ism/remove :
114
+ post :
115
+ operationId : ism.remove.0
116
+ x-operation-group : ism.remove
117
+ description : Removes a policy from an index.
118
+ externalDocs :
119
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#remove-policy
120
+ parameters :
121
+ - $ref : ' #/components/parameters/ism.remove::query.index'
122
+ responses :
123
+ ' 200 ' :
124
+ $ref : ' #/components/responses/ism.remove@200'
84
125
/_plugins/_ism/remove/{index} :
85
126
post :
86
127
operationId : ism.remove_policy.0
@@ -93,6 +134,20 @@ paths:
93
134
responses :
94
135
' 200 ' :
95
136
$ref : ' #/components/responses/ism.remove_policy@200'
137
+ /_plugins/_ism/change_policy :
138
+ post :
139
+ operationId : ism.change.0
140
+ x-operation-group : ism.change
141
+ description : Updates the managed index policy to a new policy.
142
+ externalDocs :
143
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#update-managed-index-policy
144
+ parameters :
145
+ - $ref : ' #/components/parameters/ism.change::query.index'
146
+ requestBody :
147
+ $ref : ' #/components/requestBodies/ism.change'
148
+ responses :
149
+ ' 200 ' :
150
+ $ref : ' #/components/responses/ism.change@200'
96
151
/_plugins/_ism/change_policy/{index} :
97
152
post :
98
153
operationId : ism.change_policy.0
@@ -117,18 +172,41 @@ paths:
117
172
responses :
118
173
' 200 ' :
119
174
$ref : ' #/components/responses/ism.explain@200'
175
+ post :
176
+ operationId : ism.explain.1
177
+ x-operation-group : ism.explain
178
+ description : Gets the currently applied policy on all indices.
179
+ externalDocs :
180
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#explain-index
181
+ responses :
182
+ ' 200 ' :
183
+ $ref : ' #/components/responses/ism.explain@200'
120
184
/_plugins/_ism/explain/{index} :
121
185
get :
122
- operationId : ism.explain_index.1
123
- x-operation-group : ism.explain_index
186
+ operationId : ism.explain_policy.0
187
+ x-operation-group : ism.explain_policy
124
188
description : Gets the currently applied policy on an index.
125
189
externalDocs :
126
190
url : https://opensearch.org/docs/latest/im-plugin/ism/api/#explain-index
127
191
parameters :
128
- - $ref : ' #/components/parameters/ism.explain_index ::path.index'
192
+ - $ref : ' #/components/parameters/ism.explain_policy ::path.index'
129
193
responses :
130
194
' 200 ' :
131
- $ref : ' #/components/responses/ism.explain_index@200'
195
+ $ref : ' #/components/responses/ism.explain_policy@200'
196
+ /_plugins/_ism/retry :
197
+ post :
198
+ operationId : ism.retry.0
199
+ x-operation-group : ism.retry
200
+ description : Retry the failed action for an index.
201
+ externalDocs :
202
+ url : https://opensearch.org/docs/latest/im-plugin/ism/api/#retry-failed-index
203
+ parameters :
204
+ - $ref : ' #/components/parameters/ism.retry::query.index'
205
+ requestBody :
206
+ $ref : ' #/components/requestBodies/ism.retry'
207
+ responses :
208
+ ' 200 ' :
209
+ $ref : ' #/components/responses/ism.retry@200'
132
210
/_plugins/_ism/retry/{index} :
133
211
post :
134
212
operationId : ism.retry_index.0
@@ -157,32 +235,52 @@ paths:
157
235
$ref : ' #/components/responses/ism.refresh_search_analyzers@200'
158
236
components :
159
237
requestBodies :
238
+ ism.put_policies :
239
+ content :
240
+ application/json :
241
+ schema :
242
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/PutPolicyRequest'
160
243
ism.put_policy :
161
244
content :
162
245
application/json :
163
246
schema :
164
247
$ref : ' ../schemas/ism._common.yaml#/components/schemas/PutPolicyRequest'
248
+ ism.add :
249
+ content :
250
+ application/json :
251
+ schema :
252
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/AddPolicyRequest'
165
253
ism.add_policy :
166
254
content :
167
255
application/json :
168
256
schema :
169
257
$ref : ' ../schemas/ism._common.yaml#/components/schemas/AddPolicyRequest'
258
+ ism.change :
259
+ content :
260
+ application/json :
261
+ schema :
262
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/ChangePolicyRequest'
170
263
ism.change_policy :
171
264
content :
172
265
application/json :
173
266
schema :
174
267
$ref : ' ../schemas/ism._common.yaml#/components/schemas/ChangePolicyRequest'
268
+ ism.retry :
269
+ content :
270
+ application/json :
271
+ schema :
272
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/RetryIndexRequest'
175
273
ism.retry_index :
176
274
content :
177
275
application/json :
178
276
schema :
179
277
$ref : ' ../schemas/ism._common.yaml#/components/schemas/RetryIndexRequest'
180
278
responses :
181
- ism.head_policy @200 :
279
+ ism.exists_policy @200 :
182
280
content :
183
281
application/json :
184
282
schema : {}
185
- ism.head_policy @404 :
283
+ ism.exists_policy @404 :
186
284
content :
187
285
application/json :
188
286
schema : {}
@@ -201,6 +299,11 @@ components:
201
299
application/json :
202
300
schema :
203
301
$ref : ' ../schemas/ism._common.yaml#/components/schemas/PutPolicyResponse'
302
+ ism.put_policies@200 :
303
+ content :
304
+ application/json :
305
+ schema :
306
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/PutPolicyResponse'
204
307
ism.put_policy@200 :
205
308
content :
206
309
application/json :
@@ -211,16 +314,31 @@ components:
211
314
application/json :
212
315
schema :
213
316
$ref : ' ../schemas/ism._common.yaml#/components/schemas/DeletePolicyResponse'
317
+ ism.add@200 :
318
+ content :
319
+ application/json :
320
+ schema :
321
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/AddPolicyResponse'
214
322
ism.add_policy@200 :
215
323
content :
216
324
application/json :
217
325
schema :
218
326
$ref : ' ../schemas/ism._common.yaml#/components/schemas/AddPolicyResponse'
327
+ ism.remove@200 :
328
+ content :
329
+ application/json :
330
+ schema :
331
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/RemovePolicyResponse'
219
332
ism.remove_policy@200 :
220
333
content :
221
334
application/json :
222
335
schema :
223
336
$ref : ' ../schemas/ism._common.yaml#/components/schemas/RemovePolicyResponse'
337
+ ism.change@200 :
338
+ content :
339
+ application/json :
340
+ schema :
341
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/ChangePolicyResponse'
224
342
ism.change_policy@200 :
225
343
content :
226
344
application/json :
@@ -231,11 +349,16 @@ components:
231
349
application/json :
232
350
schema :
233
351
$ref : ' ../schemas/ism._common.yaml#/components/schemas/ExplainResponse'
234
- ism.explain_index @200 :
352
+ ism.explain_policy @200 :
235
353
content :
236
354
application/json :
237
355
schema :
238
356
$ref : ' ../schemas/ism._common.yaml#/components/schemas/ExplainIndexResponse'
357
+ ism.retry@200 :
358
+ content :
359
+ application/json :
360
+ schema :
361
+ $ref : ' ../schemas/ism._common.yaml#/components/schemas/RetryIndexResponse'
239
362
ism.retry_index@200 :
240
363
content :
241
364
application/json :
@@ -247,7 +370,7 @@ components:
247
370
schema :
248
371
$ref : ' ../schemas/ism._common.yaml#/components/schemas/RefreshSearchAnalyzersResponse'
249
372
parameters :
250
- ism.head_policy ::path.policy_id :
373
+ ism.exists_policy ::path.policy_id :
251
374
name : policy_id
252
375
in : path
253
376
required : true
@@ -295,6 +418,24 @@ components:
295
418
schema :
296
419
$ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
297
420
style : simple
421
+ ism.change::query.index :
422
+ name : index
423
+ in : query
424
+ description : |-
425
+ Comma-separated list of data streams, indices, and aliases.
426
+ Supports wildcards (`*`).
427
+ required : true
428
+ schema :
429
+ $ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
430
+ ism.remove::query.index :
431
+ name : index
432
+ in : query
433
+ description : |-
434
+ Comma-separated list of data streams, indices, and aliases.
435
+ Supports wildcards (`*`).
436
+ required : true
437
+ schema :
438
+ $ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
298
439
ism.remove_policy::path.index :
299
440
name : index
300
441
in : path
@@ -315,7 +456,7 @@ components:
315
456
schema :
316
457
$ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
317
458
style : simple
318
- ism.explain_index ::path.index :
459
+ ism.explain_policy ::path.index :
319
460
name : index
320
461
in : path
321
462
description : |-
@@ -325,6 +466,15 @@ components:
325
466
schema :
326
467
$ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
327
468
style : simple
469
+ ism.retry::query.index :
470
+ name : index
471
+ in : query
472
+ description : |-
473
+ Comma-separated list of data streams, indices, and aliases.
474
+ Supports wildcards (`*`).
475
+ required : true
476
+ schema :
477
+ $ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
328
478
ism.retry_index::path.index :
329
479
name : index
330
480
in : path
@@ -345,3 +495,33 @@ components:
345
495
schema :
346
496
$ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
347
497
style : simple
498
+ ism.put_policies::query.policyID :
499
+ name : policyID
500
+ in : query
501
+ required : true
502
+ schema :
503
+ type : string
504
+ style : form
505
+ ism.put_policies::query.if_primary_term :
506
+ name : if_primary_term
507
+ in : query
508
+ description : Only perform the operation if the document has this primary term.
509
+ schema :
510
+ type : number
511
+ style : form
512
+ ism.put_policies::query.if_seq_no :
513
+ name : if_seq_no
514
+ in : query
515
+ description : Only perform the operation if the document has this sequence number.
516
+ schema :
517
+ $ref : ' ../schemas/_common.yaml#/components/schemas/SequenceNumber'
518
+ style : form
519
+ ism.add::query.index :
520
+ name : index
521
+ in : query
522
+ description : |-
523
+ Comma-separated list of data streams, indices, and aliases.
524
+ Supports wildcards (`*`).
525
+ required : true
526
+ schema :
527
+ $ref : ' ../schemas/_common.yaml#/components/schemas/IndexName'
0 commit comments