Skip to content

Commit c4b55cb

Browse files
Update rest-api-spec (#4729)
Co-authored-by: pquentin <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent 9fc8173 commit c4b55cb

File tree

3 files changed

+133
-0
lines changed

3 files changed

+133
-0
lines changed

output/schema/schema.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"indices.get_data_stream_mappings": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description": "Gets a data stream's mappings"
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": "/_data_stream/{name}/_mappings",
17+
"methods": ["GET"],
18+
"parts": {
19+
"name": {
20+
"type": "string",
21+
"description": "Comma-separated list of data streams or data stream patterns"
22+
}
23+
}
24+
}
25+
]
26+
},
27+
"params": {
28+
"master_timeout": {
29+
"type": "time",
30+
"description": "Period to wait for a connection to the master node"
31+
}
32+
}
33+
}
34+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"indices.put_data_stream_mappings": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description": "Updates a data stream's mappings"
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": "/_data_stream/{name}/_mappings",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"name": {
20+
"type": "string",
21+
"description": "Comma-separated list of data streams or data stream patterns"
22+
}
23+
}
24+
}
25+
]
26+
},
27+
"params": {
28+
"dry_run": {
29+
"type": "boolean",
30+
"description": "Whether this request should only be a dry run rather than actually applying mappings",
31+
"default": false
32+
},
33+
"timeout": {
34+
"type": "time",
35+
"description": "Period to wait for a response"
36+
},
37+
"master_timeout": {
38+
"type": "time",
39+
"description": "Period to wait for a connection to the master node"
40+
}
41+
},
42+
"body": {
43+
"description": "The data stream mappings to be updated",
44+
"required": true
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)