Create an Elasticsearch project
Create an Elasticsearch project. The response will include the created project details, such as the project ID, the credentials to access the project, and the endpoints to access different apps such as Elasticsearch and Kibana. The credentials can be regenerated at any time using the _reset-credentials endpoint.
Body
Required
Configuration of the elasticsearch project to create.
-
Descriptive name for a project.
Minimum length is
1
, maximum length is255
. -
A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
Minimum length is
1
, maximum length is50
. Format should match the following pattern:^[a-zA-Z]{1}(?:[a-zA-Z0-9-]*[a-zA-Z0-9]{1})?$
. -
Unique human-readable identifier for a region in Elastic Cloud.
-
The purpose for which the hardware of this elasticsearch project is optimized. Also known as the Elasticsearch project subtype.
- The
general_purpose
option is suitable for most search use cases. For example, it is the right profile for full-text search, sparse vectors, and dense vectors that use compression such as BBQ. It is used by default when you create projects from the UI. - The
vector
option is recommended only for uncompressed dense vectors (dense_vector
fields withint4
orint8
quantization strategies) and high dimensionality. Refer to documentation about billing dimensions for the impact to virtual compute unit (VCU) consumption.
Values are
general_purpose
orvector
.Elasticsearch Serverless billing dimensions - The
-
Configuration for entire set of capabilities that make the data searchable in Elasticsearch.
-
traffic filters IDs
traffic filters association info
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/serverless/projects/elasticsearch' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"Example project","region_id":"aws-us-east-1"}'
{
"name": "Example project",
"region_id": "aws-us-east-1"
}