Skip to content

Commit 00ba10e

Browse files
committed
Add missing repositories API REST specs
A new experimental X-Pack API was added for repositories, but is missing a REST spec. The API was added in elastic#60371
1 parent cb37989 commit 00ba10e

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"repositories.clear_metering_archive":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/clear-repositories-metering-archive-api.html",
5+
"description":"Removes the archived repositories metering information present in the cluster."
6+
},
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_nodes/{node_id}/_repositories_metering/{max_version_to_clear}",
16+
"methods":[
17+
"DELETE"
18+
],
19+
"parts":{
20+
"node_id":{
21+
"type":"list",
22+
"description":"Comma-separated list of node IDs or names used to limit returned information."
23+
},
24+
"max_version_to_clear":{
25+
"type":"long",
26+
"description":"Specifies the maximum archive_version to be cleared from the archive."
27+
}
28+
}
29+
}
30+
]
31+
}
32+
}
33+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"repositories.get_metering_info":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-repositories-metering-api.html",
5+
"description":"Returns cluster repositories metering information."
6+
},
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_nodes/{node_id}/_repositories_metering",
16+
"methods":[
17+
"GET"
18+
],
19+
"parts":{
20+
"node_id":{
21+
"type":"list",
22+
"description":"A comma-separated list of node IDs or names to limit the returned information."
23+
}
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)