Im trying to restore a snapshot, Im getting below error:
curl -u admin:password -XPOST "localhost:9200/_snapshot/backup_16OCT2016/snapshot_1/_restore" -d '{
"indices": "search",
"ignore_unavailable": true,
"include_global_state": false
}
{"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for cluster:admin/snapshot/restore"}]
,"type":"security_exception","reason":"no permissions for cluster:admin/snapshot/restore"},"status":403}
Tried role mappings, but no luck? Any help is appreciated