Skip to content

Commit aa1d00c

Browse files
timgreingithub-actions[bot]
authored andcommitted
Update rest-api-spec
1 parent 379de4f commit aa1d00c

File tree

9 files changed

+196
-20
lines changed

9 files changed

+196
-20
lines changed

output/schema/schema.json

Lines changed: 85 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@
127127
],
128128
"response": []
129129
},
130+
"snapshot.get": {
131+
"request": [
132+
"Request: missing json spec query parameter 'state'"
133+
],
134+
"response": []
135+
},
130136
"snapshot.repository_analyze": {
131137
"request": [
132138
"Request: query parameter 'register_operation_count' does not exist in the json spec"

specification/_json_spec/esql.list_queries.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"stability": "experimental",
88
"visibility": "public",
99
"headers": {
10-
"accept": [],
10+
"accept": ["application/json"],
1111
"content_type": ["application/json"]
1212
},
1313
"url": {

specification/_json_spec/indices.get_data_stream_settings.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"description": "Gets a data stream's settings"
66
},
77
"stability": "stable",
8-
"visibility": "feature_flag",
9-
"feature_flag": "logs_stream",
8+
"visibility": "public",
109
"headers": {
1110
"accept": ["application/json"]
1211
},
@@ -18,20 +17,16 @@
1817
"parts": {
1918
"name": {
2019
"type": "string",
21-
"description": "The name of the data stream or data stream pattern"
20+
"description": "Comma-separated list of data streams or data stream patterns"
2221
}
2322
}
2423
}
2524
]
2625
},
2726
"params": {
28-
"timeout": {
29-
"type": "time",
30-
"description": "Specify timeout for acknowledging the cluster state update"
31-
},
3227
"master_timeout": {
3328
"type": "time",
34-
"description": "Specify timeout for connection to master"
29+
"description": "Period to wait for a connection to the master node"
3530
}
3631
}
3732
}

specification/_json_spec/indices.put_data_stream_settings.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"description": "Updates a data stream's settings"
66
},
77
"stability": "stable",
8-
"visibility": "feature_flag",
9-
"feature_flag": "logs_stream",
8+
"visibility": "public",
109
"headers": {
1110
"accept": ["application/json"]
1211
},
@@ -18,7 +17,7 @@
1817
"parts": {
1918
"name": {
2019
"type": "string",
21-
"description": "The name of the data stream or data stream pattern"
20+
"description": "Comma-separated list of data streams or data stream patterns"
2221
}
2322
}
2423
}
@@ -27,16 +26,16 @@
2726
"params": {
2827
"dry_run": {
2928
"type": "boolean",
30-
"description": "Perform a dry run but do not actually change any settings",
29+
"description": "Whether this request should only be a dry run rather than actually applying settings",
3130
"default": false
3231
},
3332
"timeout": {
3433
"type": "time",
35-
"description": "Specify timeout for acknowledging the cluster state update"
34+
"description": "Period to wait for a response"
3635
},
3736
"master_timeout": {
3837
"type": "time",
39-
"description": "Specify timeout for connection to master"
38+
"description": "Period to wait for a connection to the master node"
4039
}
4140
},
4241
"body": {

specification/_json_spec/snapshot.get.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"verbose": {
9292
"type": "boolean",
9393
"description": "Whether to show verbose snapshot info or only show the basic info found in the repository index blob"
94+
},
95+
"state": {
96+
"type": "list",
97+
"description": "Filter snapshots by a comma-separated list of states. Valid state values are 'SUCCESS', 'IN_PROGRESS', 'FAILED', 'PARTIAL', or 'INCOMPATIBLE'."
9498
}
9599
}
96100
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"streams.logs_disable": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-logs-disable.html",
5+
"description": "Disable the Logs Streams feature for this cluster"
6+
},
7+
"stability": "stable",
8+
"visibility": "feature_flag",
9+
"feature_flag": "logs_stream",
10+
"headers": {
11+
"accept": ["application/json", "text/plain"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_streams/logs/_disable",
17+
"methods": ["POST"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"timeout": {
23+
"type": "time",
24+
"description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."
25+
},
26+
"master_timeout": {
27+
"type": "time",
28+
"description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error."
29+
}
30+
}
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"streams.logs_enable": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-logs-enable.html",
5+
"description": "Enable the Logs Streams feature for this cluster"
6+
},
7+
"stability": "stable",
8+
"visibility": "feature_flag",
9+
"feature_flag": "logs_stream",
10+
"headers": {
11+
"accept": ["application/json", "text/plain"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_streams/logs/_enable",
17+
"methods": ["POST"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"timeout": {
23+
"type": "time",
24+
"description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."
25+
},
26+
"master_timeout": {
27+
"type": "time",
28+
"description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error."
29+
}
30+
}
31+
}
32+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"streams.status": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-status.html",
5+
"description": "Return the current status of the streams feature for each streams type"
6+
},
7+
"stability": "stable",
8+
"visibility": "feature_flag",
9+
"feature_flag": "logs_stream",
10+
"headers": {
11+
"accept": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_streams/status",
17+
"methods": ["GET"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"mater_timeout": {
23+
"type": "time",
24+
"description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)