I've created a cluster deployment with kibana.
Making that over UI it is done in saving one configuration, which is than "separated" into to two plans (under advanced configuration) for elastic and kibana.
I've created the same cluster via API, but haven't found a way to do that in one configuration step.
This is my current approach, but I would like to do that in one curl POST, so that the elasticsearch_cluster_id is automatically provided for the kibana plan.
Thanks for sending this note. There is currently no API endpoint that will allow you to create an elasticsearch cluster and kibana instance in one request. We are working on supporting the use case you are describing and we'll update the public API reference section in our user guide once the new endpoint is available. Until that's available you will have to send two separate request as described in your example.
Correction - you can create an ES cluster + Kib instance set in a single API call - in the standard create call , there is a kibana field in the top level model
The thing you can't do that Roy was alluding to is reconfigure ES and Kibana with a single call - you'll need to make separate /clusters/elasticsearch/{id}/... and /clusters/kibana/{id}/... calls with the ES and Kibana ids. There will soon be a new set of APIs making creating and configuring the different services in the Elastic stack easier and more logical.
Sorry, I was too quick to respond having the new endpoint in mind. The links provided by @Alex_Piggott can help but here is an example of a simple payload you can use to create an elasticsearch cluster with kibana enabled in one request:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.