Skip to content

Commit 65001d0

Browse files
Update rest-api-spec
1 parent 29a6480 commit 65001d0

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

output/schema/validation-errors.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_json_spec/snapshot.get.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,46 @@
4848
"type": "boolean",
4949
"description": "Whether to include the repository name in the snapshot info. Defaults to true."
5050
},
51+
"sort": {
52+
"type": "enum",
53+
"default": "start_time",
54+
"options": [
55+
"start_time",
56+
"duration",
57+
"name",
58+
"repository",
59+
"index_count",
60+
"shard_count",
61+
"failed_shard_count"
62+
],
63+
"description": "Allows setting a sort order for the result. Defaults to start_time"
64+
},
65+
"size": {
66+
"type": "integer",
67+
"description": "Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit."
68+
},
69+
"order": {
70+
"type": "enum",
71+
"default": "asc",
72+
"options": ["asc", "desc"],
73+
"description": "Sort order"
74+
},
75+
"from_sort_value": {
76+
"type": "string",
77+
"description": "Value of the current sort column at which to start retrieval."
78+
},
79+
"after": {
80+
"type": "string",
81+
"description": "Offset identifier to start pagination from as returned by the 'next' field in the response body."
82+
},
83+
"offset": {
84+
"type": "integer",
85+
"description": "Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0"
86+
},
87+
"slm_policy_filter": {
88+
"type": "string",
89+
"description": "Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy"
90+
},
5191
"verbose": {
5292
"type": "boolean",
5393
"description": "Whether to show verbose snapshot info or only show the basic info found in the repository index blob"

0 commit comments

Comments
 (0)