Hi,
I have an existing cluster and s3 repository created in ECE. When I want to enable snapshots for the cluster using an API call, I'm getting an error.
Request:
curl --request PATCH \
--url {ece-url}/api/v1/clusters/elasticsearch/e2bf4e7e72274bd0ab8b6ba1ac7b9919/snapshot/settings \
--header 'content-type: application/json' \
--data '{
"enabled" : true,
"interval" : "1d",
"pending_interval" : "1m",
"repository" : {
"reference" : {
"repository_name": "cluster_repo_s3"
}
},
"retention" : {
"max_age" : "90d",
"snapshots" : 90
}
}'
Response:
{
"errors": [
{
"code": "clusters.cluster_setting_error",
"message": "Cluster Settings Error: Only one of reference/static/default repository configuration should be defined"
}
]
}
Any thoughts on what I'm doing wrong?
Thank you,
Ondrej