Skip to content

Commit 9e0c065

Browse files
Update rest-api-spec (#4604)
Co-authored-by: pquentin <[email protected]>
1 parent b01fba3 commit 9e0c065

File tree

3 files changed

+129
-0
lines changed

3 files changed

+129
-0
lines changed

output/schema/schema.json

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"indices.get_data_stream_settings": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description": "Gets a data stream's settings"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_data_stream/{name}/_settings",
16+
"methods": ["GET"],
17+
"parts": {
18+
"name": {
19+
"type": "string",
20+
"description": "Comma-separated list of data streams or data stream patterns"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params": {
27+
"master_timeout": {
28+
"type": "time",
29+
"description": "Period to wait for a connection to the master node"
30+
}
31+
}
32+
}
33+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"indices.put_data_stream_settings": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description": "Updates a data stream's settings"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_data_stream/{name}/_settings",
16+
"methods": ["PUT"],
17+
"parts": {
18+
"name": {
19+
"type": "string",
20+
"description": "Comma-separated list of data streams or data stream patterns"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params": {
27+
"dry_run": {
28+
"type": "boolean",
29+
"description": "Whether this request should only be a dry run rather than actually applying settings",
30+
"default": false
31+
},
32+
"timeout": {
33+
"type": "time",
34+
"description": "Period to wait for a response"
35+
},
36+
"master_timeout": {
37+
"type": "time",
38+
"description": "Period to wait for a connection to the master node"
39+
}
40+
},
41+
"body": {
42+
"description": "The data stream settings to be updated",
43+
"required": true
44+
}
45+
}
46+
}

0 commit comments

Comments
 (0)