forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing X-Pack repositories REST specs (elastic#65548)
* 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
1 parent
57aa649
commit 4f0b4e9
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
rest-api-spec/src/main/resources/rest-api-spec/api/nodes.clear_metering_archive.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
rest-api-spec/src/main/resources/rest-api-spec/api/nodes.get_metering_info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |