# Parameter Errors When Getting Snapshots

**URL:** <https://discuss.elastic.co/t/parameter-errors-when-getting-snapshots/287761>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [October 27, 2021, 7:25am UTC](https://discuss.elastic.co/t/parameter-errors-when-getting-snapshots/287761 "2021-10-27T07:25:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [October 27, 2021, 7:25am UTC](https://discuss.elastic.co/t/parameter-errors-when-getting-snapshots/287761/1 "2021-10-27T07:25:51Z")

</div>

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

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

```

But get this error:

```auto
{
  "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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 27, 2021, 7:27am UTC](https://discuss.elastic.co/t/parameter-errors-when-getting-snapshots/287761/2 "2021-10-27T07:27:56Z")

</div>

Those are not supported parameters for that end point - [Get snapshot repository API | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/get-snapshot-repo-api.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 24, 2021, 7:28am UTC](https://discuss.elastic.co/t/parameter-errors-when-getting-snapshots/287761/3 "2021-11-24T07:28:43Z")

</div>

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