Get Elasticsearch projects
The number of projects included can be configured with page_size. Consecutive calls can be made to retrieve next pages by providing a token.
GET /api/v1/serverless/projects/elasticsearch
curl \
-X GET https://api.elastic-cloud.com/api/v1/serverless/projects/elasticsearch
Response examples (200)
{
"next_page": "YyMzY1MDQiLCJtYXgiOiJGRiJ9fV0=",
"items": [
{
"id": "string",
"name": "my project",
"alias": "my-project-alias",
"region_id": "aws-us-east-1",
"metadata": {
"created_at": "2024-05-04T09:42:00+00:00",
"created_by": "1014289666002276",
"organization_id": "198583657190",
"suspended_at": "2024-05-04T09:42:00+00:00",
"suspended_reason": "trial expired"
},
"cloud_id": "my_project:LmF3cy5lbGFzdG",
"type": "elasticsearch",
"optimized_for": "general_purpose",
"search_lake": {
"search_power": 100,
"boost_window": 100
},
"endpoints": {
"elasticsearch": "https://my-project-alias-df6c6d.es.us-east-1.aws.elastic.cloud",
"kibana": "https://my-project-alias-df6c6d.kb.us-east-1.aws.elastic.cloud"
}
}
]
}
Response examples (401)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}