API Reference
POSTmanage_instance

Manage 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

POSThttps://api.sharkcluster.com/manage_instance

How do you call Manage Instance?

  1. 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
  2. 2Send a POST request to https://api.sharkcluster.com/manage_instance.
  3. 3Include the required parameters: server_id, provider, action and instance_id.
  4. 4Add the optional parameter only if you need it: new_name.

Request parameters

ParameterTypeDescription
server_id
Required
stringThe internal unique ID of the server in SharkCluster.
provider
Required
stringThe provider name: digitalocean, contabo, or sharkcluster for OVHcloud.
action
Required
stringThe action to perform: power_on, shutdown, reboot, rename, delete.
instance_id
Required
stringThe provider-specific ID. Required for DigitalOcean and Contabo; not needed for OVHcloud.
new_namestringThe 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
}

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.

Contact us