Skip to content

Commit c7c4e68

Browse files
authored
Fix cat APIs query parameters (elastic#123020) (elastic#123128)
1 parent 9a5fc3f commit c7c4e68

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/cat.help.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@
1818
]
1919
}
2020
]
21-
},
22-
"params":{
23-
"help":{
24-
"type":"boolean",
25-
"description":"Return help information",
26-
"default":false
27-
},
28-
"s":{
29-
"type":"list",
30-
"description":"Comma-separated list of column names or column aliases to sort by"
31-
}
3221
}
3322
}
3423
}

rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
"type":"string",
3737
"description":"a short version of the Accept header, e.g. json, yaml"
3838
},
39+
"local":{
40+
"type":"boolean",
41+
"description":"Return local information, do not retrieve the state from master node (default: false)"
42+
},
43+
"master_timeout":{
44+
"type":"time",
45+
"description":"Explicit operation timeout for connection to master node"
46+
},
3947
"bytes":{
4048
"type":"enum",
4149
"description":"The unit in which to display byte values",

rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@
7070
"type":"boolean",
7171
"description":"Verbose mode. Display column headers",
7272
"default":false
73+
},
74+
"timeout":{
75+
"type":"time",
76+
"default":"30s",
77+
"description":"Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."
78+
},
79+
"wait_for_completion":{
80+
"type":"boolean",
81+
"default":false,
82+
"description":"If `true`, the request blocks until the task has completed."
7383
}
7484
}
7585
}

0 commit comments

Comments
 (0)