Hello,
in our company we use cloud.elastic.co and I would like to configure automation new cluster deployment from existing snapshot of secondary cluster.
I have a problem with API communication. I wanted to send request for example:
"curl -k -X GET myuser:myPassword https://cloud.elastic.co/api/v1/clusters/elasticsearch" and I received "access denied". I am using correct credentials(the same like for UI).
Is it possible to connect to elastic cloud enterprise API?
This doesn't work - https://www.elastic.co/guide/en/cloud-enterprise/current/login.html
curl -X POST "https://cloud.elastic.co/api/v1/users/auth/_login" -H 'Content-Type: application/json' -d' 3 ↵
{
"username" : "myuser",
"password" : "mypass"
}
'
How can I generate api-key?
Thanks for yours reply.
Regards, Dawid