Skip to content

Commit 3baa4a5

Browse files
Update rest-api-spec (#5458)
Co-authored-by: pquentin <42327+pquentin@users.noreply.github.com> Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent 3850eca commit 3baa4a5

File tree

229 files changed

+518
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+518
-25
lines changed

specification/_json_spec/async_search.status.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"params": {
2727
"keep_alive": {
2828
"type": "time",
29+
"default": "5d",
2930
"description": "Specify the time interval in which the results (partial or final) for this search will be available"
3031
}
3132
}

specification/_json_spec/async_search.submit.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
},
5252
"request_cache": {
5353
"type": "boolean",
54+
"default": true,
5455
"description": "Specify if request cache should be used for this request or not, defaults to true"
5556
},
5657
"analyzer": {

specification/_json_spec/autoscaling.delete_autoscaling_policy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
},
3232
"timeout": {
3333
"type": "time",
34+
"default": "30s",
3435
"description": "Timeout for acknowledgement of update from all nodes in cluster"
3536
}
3637
}

specification/_json_spec/autoscaling.put_autoscaling_policy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
},
3333
"timeout": {
3434
"type": "time",
35+
"default": "30s",
3536
"description": "Timeout for acknowledgement of update from all nodes in cluster"
3637
}
3738
},

specification/_json_spec/bulk.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
"params": {
3232
"wait_for_active_shards": {
3333
"type": "string",
34+
"default": "1",
3435
"description": "Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
3536
},
3637
"refresh": {
3738
"type": "enum",
3839
"options": ["true", "false", "wait_for"],
40+
"default": "false",
3941
"description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."
4042
},
4143
"routing": {
@@ -44,6 +46,7 @@
4446
},
4547
"timeout": {
4648
"type": "time",
49+
"default": "1m",
4750
"description": "Explicit operation timeout"
4851
},
4952
"_source": {
@@ -64,18 +67,22 @@
6467
},
6568
"require_alias": {
6669
"type": "boolean",
70+
"default": false,
6771
"description": "If true, the request's actions must target an index alias. Defaults to false."
6872
},
6973
"require_data_stream": {
7074
"type": "boolean",
75+
"default": false,
7176
"description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false"
7277
},
7378
"list_executed_pipelines": {
7479
"type": "boolean",
80+
"default": false,
7581
"description": "Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)"
7682
},
7783
"include_source_on_error": {
7884
"type": "boolean",
85+
"default": true,
7986
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
8087
}
8188
},

specification/_json_spec/cat.allocation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
},
4646
"local": {
4747
"type": "boolean",
48+
"default": false,
4849
"description": "Return local information, do not retrieve the state from master node (default: false)"
4950
},
5051
"master_timeout": {

specification/_json_spec/cat.component_templates.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
},
3636
"local": {
3737
"type": "boolean",
38+
"default": false,
3839
"description": "Return local information, do not retrieve the state from master node (default: false)"
3940
},
4041
"master_timeout": {

specification/_json_spec/cat.master.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"local": {
2727
"type": "boolean",
28+
"default": false,
2829
"description": "Return local information, do not retrieve the state from master node (default: false)"
2930
},
3031
"master_timeout": {

specification/_json_spec/cat.ml_data_frame_analytics.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"params": {
3131
"allow_no_match": {
3232
"type": "boolean",
33+
"default": false,
3334
"description": "Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified)"
3435
},
3536
"bytes": {
@@ -44,6 +45,7 @@
4445
},
4546
"h": {
4647
"type": "list",
48+
"default": "create_time,id,state,type",
4749
"description": "Comma-separated list of column names to display"
4850
},
4951
"help": {

specification/_json_spec/cat.ml_datafeeds.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"params": {
3131
"allow_no_match": {
3232
"type": "boolean",
33+
"default": true,
3334
"description": "Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)"
3435
},
3536
"format": {
@@ -39,6 +40,7 @@
3940
},
4041
"h": {
4142
"type": "list",
43+
"default": "['bc', 'id', 'sc', 's']",
4244
"description": "Comma-separated list of column names to display"
4345
},
4446
"help": {

0 commit comments

Comments
 (0)