Skip to content

Commit bb7dc31

Browse files
adnapibarpeternied
authored andcommittedMar 13, 2021
Bring back the REST specs for data streams. (#78)
Add back the REST specs for data streams which were moved to x-pack as part of the commit fe12217 Signed-off-by: Peter Nied <petern@amazon.com>
1 parent c628fff commit bb7dc31

File tree

4 files changed

+120
-0
lines changed

4 files changed

+120
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"indices.create_data_stream":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Creates or updates a data stream"
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream/{name}",
12+
"methods":[
13+
"PUT"
14+
],
15+
"parts":{
16+
"name":{
17+
"type":"string",
18+
"description":"The name of the data stream"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{
25+
},
26+
"body":{
27+
"description":"The data stream definition"
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"indices.data_streams_stats":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Provides statistics on operations happening in a data stream."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream/_stats",
12+
"methods":[
13+
"GET"
14+
]
15+
},
16+
{
17+
"path":"/_data_stream/{name}/_stats",
18+
"methods":[
19+
"GET"
20+
],
21+
"parts":{
22+
"name":{
23+
"type":"list",
24+
"description":"A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams"
25+
}
26+
}
27+
}
28+
]
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"indices.delete_data_stream":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Deletes a data stream."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream/{name}",
12+
"methods":[
13+
"DELETE"
14+
],
15+
"parts":{
16+
"name":{
17+
"type":"list",
18+
"description":"A comma-separated list of data streams to delete; use `*` to delete all data streams"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"indices.get_data_stream":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Returns data streams."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream",
12+
"methods":[
13+
"GET"
14+
]
15+
},
16+
{
17+
"path":"/_data_stream/{name}",
18+
"methods":[
19+
"GET"
20+
],
21+
"parts":{
22+
"name":{
23+
"type":"list",
24+
"description":"A comma-separated list of data streams to get; use `*` to get all data streams"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)
Please sign in to comment.