Skip to content

Commit

Permalink
Add missing X-Pack repositories REST specs (elastic#65548)
Browse files Browse the repository at this point in the history
* 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

* Move this under the nodes namespace

* Rename max_version_to_clear parameter

* Update docs URL to use current
  • Loading branch information
stevejgordon authored and elasticsearchmachine committed Jul 16, 2021
1 parent 2338660 commit 1f5cf4d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"nodes.clear_metering_archive":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html",
"description":"Removes the archived repositories metering information present in the cluster."
},
"stability":"experimental",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_nodes/{node_id}/_repositories_metering/{max_archive_version}",
"methods":[
"DELETE"
],
"parts":{
"node_id":{
"type":"list",
"description":"Comma-separated list of node IDs or names used to limit returned information."
},
"max_archive_version":{
"type":"long",
"description":"Specifies the maximum archive_version to be cleared from the archive."
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"nodes.get_metering_info":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html",
"description":"Returns cluster repositories metering information."
},
"stability":"experimental",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_nodes/{node_id}/_repositories_metering",
"methods":[
"GET"
],
"parts":{
"node_id":{
"type":"list",
"description":"A comma-separated list of node IDs or names to limit the returned information."
}
}
}
]
}
}
}

0 comments on commit 1f5cf4d

Please sign in to comment.