Skip to content

Commit d862c57

Browse files
authored
Add missing timeouts to rest-api-spec ILM APIs (#118837) (#131615)
(cherry picked from commit ffe9002)
1 parent 8334077 commit d862c57

File tree

7 files changed

+59
-5
lines changed

7 files changed

+59
-5
lines changed

docs/changelog/118837.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118837
2+
summary: Add missing timeouts to rest-api-spec ILM APIs
3+
area: "ILM+SLM"
4+
type: bug
5+
issues: []

rest-api-spec/src/main/resources/rest-api-spec/api/ilm.delete_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
}
2626
]
2727
},
28-
"params":{}
28+
"params":{
29+
"master_timeout":{
30+
"type":"time",
31+
"description":"Explicit operation timeout for connection to master node"
32+
},
33+
"timeout":{
34+
"type":"time",
35+
"description":"Explicit operation timeout"
36+
}
37+
}
2938
}
3039
}

rest-api-spec/src/main/resources/rest-api-spec/api/ilm.explain_lifecycle.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
"only_errors": {
3434
"type": "boolean",
3535
"description": "filters the indices included in the response to ones in an ILM error state, implies only_managed"
36+
},
37+
"master_timeout":{
38+
"type":"time",
39+
"description":"Explicit operation timeout for connection to master node"
3640
}
3741
}
3842
}

rest-api-spec/src/main/resources/rest-api-spec/api/ilm.get_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
}
3232
]
3333
},
34-
"params":{}
34+
"params":{
35+
"master_timeout":{
36+
"type":"time",
37+
"description":"Explicit operation timeout for connection to master node"
38+
},
39+
"timeout":{
40+
"type":"time",
41+
"description":"Explicit operation timeout"
42+
}
43+
}
3544
}
3645
}

rest-api-spec/src/main/resources/rest-api-spec/api/ilm.put_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@
2626
}
2727
]
2828
},
29-
"params":{},
29+
"params":{
30+
"master_timeout":{
31+
"type":"time",
32+
"description":"Explicit operation timeout for connection to master node"
33+
},
34+
"timeout":{
35+
"type":"time",
36+
"description":"Explicit operation timeout"
37+
}
38+
},
3039
"body":{
3140
"description":"The lifecycle policy definition to register"
3241
}

rest-api-spec/src/main/resources/rest-api-spec/api/ilm.start.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
]
2121
},
22-
"params":{}
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
},
27+
"timeout":{
28+
"type":"time",
29+
"description":"Explicit operation timeout"
30+
}
31+
}
2332
}
2433
}

rest-api-spec/src/main/resources/rest-api-spec/api/ilm.stop.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
]
2121
},
22-
"params":{}
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
},
27+
"timeout":{
28+
"type":"time",
29+
"description":"Explicit operation timeout"
30+
}
31+
}
2332
}
2433
}

0 commit comments

Comments
 (0)