manage_instanceManage Instance
Manage Instance is a POST request to https://api.sharkcluster.com/manage_instance in the Server Management section of the SharkCluster API. Performs a specific power or administrative action on a server instance. This works across all supported cloud providers. It takes 5 parameters, 4 required (server_id, provider, action and instance_id).
Request URL
https://api.sharkcluster.com/manage_instanceHow do you call Manage Instance?
- 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
- 2Send a POST request to https://api.sharkcluster.com/manage_instance.
- 3Include the required parameters: server_id, provider, action and instance_id.
- 4Add the optional parameter only if you need it: new_name.
Request parameters
| Parameter | Type | Description |
|---|---|---|
server_idRequired | string | The internal unique ID of the server in SharkCluster. |
providerRequired | string | The provider name: digitalocean, contabo, or sharkcluster for OVHcloud. |
actionRequired | string | The action to perform: power_on, shutdown, reboot, rename, delete. |
instance_idRequired | string | The provider-specific ID. Required for DigitalOcean and Contabo; not needed for OVHcloud. |
new_name | string | The new name for the server (Required only if action is rename). |
What does Manage Instance return?
A successful call returns a JSON object with the fields success, message and server_status. Check that success is true in the body: like many SharkCluster endpoints, a failure can come back with HTTP 200 and success: false. A failed call explains the problem in the body, for example "Server not found or already deleted".
Request sample
const axios = require('axios');
// Example: Rebooting a DigitalOcean Server
const data = {
server_id: "0000-1111-2222",
provider: "digitalocean",
instance_id: "100000002",
action: "reboot"
};
axios.post('https://api.sharkcluster.com/manage_instance', data, {
headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
})
.then(res => console.log("Action Result:", res.data))
.catch(err => console.error(err));
Response
{
"success": true,
"message": "Droplet 100000003 power_off initiated.",
"server_status": 2
}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.