Skip to content

Commit 19afe82

Browse files
committed
added "frozen" to the server side schema
1 parent 469e5bb commit 19afe82

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

x-pack/plugins/index_lifecycle_management/server/routes/api/policies/register_create_route.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
107124
const 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
});

0 commit comments

Comments
 (0)