# \_snapshot endpoint fail to get stat

**URL:** <https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728>\
**Category:** OpenSearch\
**Tags:** index-management\
**Created:** [June 7, 2024, 3:24pm UTC](https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728 "2024-06-07T15:24:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsamuel12](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jsamuel12](https://forum.opensearch.org/u/jsamuel12)\
**Post date:** [June 7, 2024, 3:24pm UTC](https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728/1 "2024-06-07T15:24:21Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch v2.9

**Describe the issue** :  
When trying to hit the `GET _snapshot/<Repo>/<snapshot full name>/_status` endpoint, I get back a 404 BUT if I remove the `/status` I get the expected results.

I bring this up as my State Management policy is failing during the snapshotting → deleting transition. I’m guessing the internals are also hitting the status endpoint

**Relevant Logs or Screenshots** :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/1/1ee7054c6f042817d58b42d49b56360729bfaf1b.png)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/4/48849950475b03f5d95941e0e18eb2e7a3310cf8.png)

---

<div class="post-metadata">

**Author:** ![jsamuel12](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jsamuel12](https://forum.opensearch.org/u/jsamuel12)\
**Post date:** [June 7, 2024, 3:26pm UTC](https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728/2 "2024-06-07T15:26:34Z")

</div>

This is my policy

```auto
{
    "id": "hot_to_cold_policy",
    "seqNo": 16908471,
    "primaryTerm": 66,
    "policy": {
        "policy_id": "hot_to_cold_policy",
        "description": "Hot to cold transition, snapshot, and delete local index for non application indicies",
        "last_updated_time": 1717767244871,
        "schema_version": 18,
        "error_notification": null,
        "default_state": "hot",
        "states": [
            {
                "name": "hot",
                "actions": [],
                "transitions": [
                    {
                        "state_name": "cold",
                        "conditions": {
                            "min_index_age": "1d"
                        }
                    }
                ]
            },
            {
                "name": "cold",
                "actions": [
                    {
                        "timeout": "1h",
                        "retry": {
                            "count": 3,
                            "backoff": "exponential",
                            "delay": "1h"
                        },
                        "snapshot": {
                            "repository": "ColdStorage",
                            "snapshot": "{{ctx.index}}_{{#now}}"
                        }
                    },
                    {
                        "timeout": "1h",
                        "retry": {
                            "count": 3,
                            "backoff": "exponential",
                            "delay": "1h"
                        },
                        "delete": {}
                    }
                ],
                "transitions": []
            }
        ],
        "ism_template": [
            {
                "index_patterns": [
                    "*"
                ],
                "priority": 90,
                "last_updated_time": 1696882227220
            }
        ]
    }
}

```

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [June 19, 2024, 8:25pm UTC](https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728/3 "2024-06-19T20:25:41Z")

</div>

@jsamuel12 Could you try running GET call with curl and superadmin certificates?

---

<div class="post-metadata">

**Author:** ![jsamuel12](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jsamuel12](https://forum.opensearch.org/u/jsamuel12)\
**Post date:** [June 20, 2024, 12:10am UTC](https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728/4 "2024-06-20T00:10:24Z")

</div>

I can try but not sure what that will accomplish seeing the dev tools are connecting to the same nodes

---

<div class="post-metadata">

**Author:** ![jsamuel12](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jsamuel12](https://forum.opensearch.org/u/jsamuel12)\
**Post date:** [June 20, 2024, 1:19pm UTC](https://forum.opensearch.org/t/snapshot-endpoint-fail-to-get-stat/19728/5 "2024-06-20T13:19:12Z")

</div>

I am receiving the same error using the suggested method. Somehow if removing `_status`, the snapshot will be found.
