Parameter Errors When Getting Snapshots

Hi,
I'm trying to get a list of snapshots using the size and sort parameters:

GET /_snapshot/<repo_name>/snapshots-*?size=2&sort=name

But get this error:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "request [/_snapshot/<repo_name>/snapshots-*] contains unrecognized parameters: [size], [sort]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "request [/_snapshot/<repo_name>/snapshots-*] contains unrecognized parameters: [size], [sort]"
  },
  "status" : 400
}

What am I doing wrong here? Elasticsearch version is 7.13.1.

Thx
D

Those are not supported parameters for that end point - Get snapshot repository API | Elasticsearch Guide [7.15] | Elastic

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.