Create cluster

Creates an Elasticsearch cluster.

Request

POST /api/v1/clusters/elasticsearch

Query parameters

request_id
(string) (Optional) The idempotency token. When two create requests share the same request_id (minimum size of 32 characters, maximum size of 128 characters), only one cluster is created. The second request returns the information for that cluster, but the password field is blank.
validate_only
(boolean; default: false) When true, validates the cluster definition without creating the cluster.

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"')