Create cluster

Creates an Elasticsearch cluster.

Request

POST /api/v1/clusters/elasticsearch

Query parameters

request_id
(string) An optional idempotency token - if two create requests share the same request_id token (min size 32 characters, max 128) then only one cluster will be created, the second request will return the info of that cluster (in the same format described below, except the password field will be blank)
validate_only
(boolean; default: false) If true, will just validate the cluster definition but will not perform the creation

Request body

(CreateElasticsearchClusterRequest) (required) The cluster definition

Responses

200
(ClusterCrudResponse) The cluster definition was valid - no further action was requested. The return object contains an internal representation of the plan, for use in debugging
201
(ClusterCrudResponse) The cluster definition was valid and the cluster creation has started
400
(BasicFailedReply) The cluster definition contained errors (code: 'clusters.cluster_invalid_plan' and 'clusters.plan_feature_not_implemented')
449
(BasicFailedReply) elevated permissions are required. (code: '"root.needs_elevated_permissions"')