Is it possible to restore a backup of OpenSearch Alerting?

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2.11

Describe the issue:
I have taken a snapshot of the .opendistro-alerting-config index to create a backup of my alerting configuration, as suggested on Management - OpenSearch documentation

However, I am not able to figure out how to restore this, as not even the built-in admin role seems to have any permissions to touch this index. Restoring a snapshot is not possible because the index doesn’t exist, but the existing index cannot be deleted with any permission level, not does it seem to be .

Relevant Logs or Screenshots:
{"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"}],"type":"security_exception"," reason":"no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"},"status":403}

Hey @albgus

You may have to use CLI for that server either with certs or user/password.

 curl -XGET https://localhost:9200/_plugins/_performanceanalyzer/metrics/units  -k --cert ./admin.pem --key ./admin-key.pem


curl -u admin:admin -k -X PUT "https://localhost:9200/my-index-a?pretty"

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