Create an observability 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, Kibana and APM. The credentials can be regenerated at any time using the _reset-credentials endpoint.
Body Required
Configuration of the observability project to create.
-
Descriptive name for a project.
Minimum length is
1
, maximum length is255
. -
alias string
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.
POST
/api/v1/serverless/projects/observability
curl \
-X POST https://api.elastic-cloud.com/api/v1/serverless/projects/observability \
-H "Content-Type: application/json" \
-d '{"name":"Example project","region_id":"aws-us-east-1"}'
Request example
{
"name": "Example project",
"region_id": "aws-us-east-1"
}
Response examples (201)
# Headers
ETag: string
# Payload
{
"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": "observability",
"endpoints": {
"elasticsearch": "string",
"kibana": "string",
"apm": "string",
"ingest": "string"
},
"credentials": {
"username": "admin",
"password": "*****"
}
}
Response examples (400)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
Response examples (422)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}