API Reference
POST
install-elasticsearchInstall Elasticsearch
Install Elasticsearch is a POST request to https://api.sharkcluster.com/install-elasticsearch in the Server Management section of the SharkCluster API. Installs Elasticsearch (Version 7 or 8) on the server, configures the official repository, and starts the service. It takes 1 parameter, 1 required (server_id).
Request URL
POST
https://api.sharkcluster.com/install-elasticsearchHow do you call Install Elasticsearch?
- 1Send a POST request to https://api.sharkcluster.com/install-elasticsearch.
- 2Include the required parameter: server_id.
Request parameters
| Parameter | Type | Description |
|---|---|---|
server_idRequired | string | The unique identifier or Instance ID of the server. |
What does Install Elasticsearch return?
A failed call explains the problem in the body, for example "Error description (e.g., Server not found)".
Request sample
const axios = require('axios');
const response = await axios.post('/install-elasticsearch', {
server_id: "21cda6fc-8c68...",
version: "8"
});
Related Server Management endpoints
- GET
get_server_monitoring_settings/:serverIdGet Server Monitoring Settings - PUT
update_server_monitoring_settings/:serverIdUpdate Server Monitoring Settings - GET
get_server_other_services_config/:serverIdGet Server Other Services Config - POST
restart-elasticsearchRestart Elasticsearch - POST
stop-elasticsearchStop Elasticsearch - POST
uninstall-elasticsearchUninstall Elasticsearch
Stuck on an integration?
Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.