I've created a custom Deployment template based on a custom Instance configuration.
If I deploy a new cluster via UI it works.
How can I create a new cluster based on my custom template vis REST API?
I can't find a working example for template based deployment in REST API Reference.
Here is what I tried so far:
Variant 1: (doesn't work at all)
My hope was, that all cluster toplogy info would be taken from template.
curl -k -X POST -u admin ... clusters/elasticsearch -H 'content-type: application/json' -d '{
"cluster_name" : "MyCluster",
"plan" : {
"elasticsearch" : {
"version" : "6.6.0"
},
"deployment_template": {
"id": "c7159de3c438493b9925474390a8a6a0"
}
}
}'
Variant 2: (Creates a Cluster, but doesn't use my template)
curl -k -X POST -u admin ... clusters/elasticsearch -H 'content-type: application/json' -d '{
"cluster_name" : "MyCluster",
"plan" : {
"elasticsearch" : {
"version" : "6.6.0"
},
"cluster_topology" : [
{
"memory_per_node" : 2048,
"node_count_per_zone" : 1,
"node_type" : {
"data" : true,
"ingest" : true,
"master" : true
},
"zone_count" : 1
}
],
"deployment_template": {
"id": "c7159de3c438493b9925474390a8a6a0"
}
}
}'
TIA,
Agnes