Create cluster

Creates an Elasticsearch cluster.

Request

POST /api/v1/clusters/elasticsearch

Query Parameters

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) When running as an administrator (other than root), sudo is required (code: 'root.needs_sudo')