File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
x-pack/plugins/index_lifecycle_management/server/routes/api/policies Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,23 @@ const coldPhaseSchema = schema.maybe(
104104 } )
105105) ;
106106
107+ const frozenPhaseSchema = schema . maybe (
108+ schema . object ( {
109+ min_age : minAgeSchema ,
110+ actions : schema . object ( {
111+ set_priority : setPrioritySchema ,
112+ unfollow : unfollowSchema ,
113+ allocate : allocateSchema ,
114+ freeze : schema . maybe ( schema . object ( { } ) ) , // Freeze has no options
115+ searchable_snapshot : schema . maybe (
116+ schema . object ( {
117+ snapshot_repository : schema . string ( ) ,
118+ } )
119+ ) ,
120+ } ) ,
121+ } )
122+ ) ;
123+
107124const deletePhaseSchema = schema . maybe (
108125 schema . object ( {
109126 min_age : minAgeSchema ,
@@ -129,6 +146,7 @@ const bodySchema = schema.object({
129146 hot : hotPhaseSchema ,
130147 warm : warmPhaseSchema ,
131148 cold : coldPhaseSchema ,
149+ frozen : frozenPhaseSchema ,
132150 delete : deletePhaseSchema ,
133151 } ) ,
134152} ) ;
You can’t perform that action at this time.
0 commit comments