API Reference
POST
install-opensearchInstall OpenSearch
Install OpenSearch is a POST request to https://api.sharkcluster.com/install-opensearch in the Server Management section of the SharkCluster API. Installs OpenSearch 2.x on the specified server. This process includes installing OpenJDK 17, adding the OpenSearch repository, configuring basic JVM memory (512MB), and setting the required kernel parameters (vm.max_map_count). It takes 1 parameter, 1 required (server_id).
Request URL
POST
https://api.sharkcluster.com/install-opensearchHow do you call Install OpenSearch?
- 1Send a POST request to https://api.sharkcluster.com/install-opensearch.
- 2Include the required parameter: server_id.
Request parameters
| Parameter | Type | Description |
|---|---|---|
server_idRequired | string | The ID of the server where OpenSearch should be installed. |
What does Install OpenSearch return?
A failed call explains the problem in the body, for example "Failed to install OpenSearch".
Request sample
const axios = require('axios');
axios.post('https://api.sharkcluster.com/install-opensearch', { server_id: "server_123" })
.then(response => console.log(response.data))
.catch(error => console.error(error.response.data));
Related Server Management endpoints
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.