Skip to main content
POST
/
servers
/
{server_id}
/
lock
Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";

const latitudesh = new Latitudesh({
  bearer: process.env["LATITUDESH_BEARER"] ?? "",
});

async function run() {
  const result = await latitudesh.servers.lock({
    serverId: "sv_pbV0DgjKq4AWz",
  });

  console.log(result);
}

run();
{
  "data": {
    "id": "sv_pbV0DgjKq4AWz",
    "type": "servers",
    "attributes": {
      "hostname": "Heavy Duty Concrete Chair",
      "label": "946654NODEUT",
      "price": 599,
      "ipmi_status": "Normal",
      "scheduled_deletion_at": null,
      "status": "unknown",
      "role": "Enclosure",
      "primary_ipv4": "150.158.19.54",
      "created_at": null,
      "locked": true,
      "team": {
        "id": "team_zAoElw92Z1c36A13Vx9EF71RlMl",
        "name": "467 Team",
        "slug": "467-team",
        "description": "467 Team",
        "address": "Suite 277 939 Hermann Mall, Hongshire, NH 77247-8873",
        "status": "verified",
        "currency": {
          "id": "cur_AW6Q2D9lqKLpr",
          "code": "BRL",
          "name": "Brazilian Real",
          "currency_id": null
        }
      },
      "project": {
        "id": "proj_Gr47qloZdAg0m",
        "name": "Heavy Duty Linen Bottle",
        "slug": "heavy-duty-linen-bottle",
        "description": "Awesome Copper Lamp",
        "billing_type": "Normal",
        "billing_method": "Normal",
        "bandwidth_alert": false,
        "environment": null,
        "billing": {
          "subscription_id": "sub_6rq7u7562p9hap",
          "type": "Normal",
          "method": "Normal"
        },
        "stats": {
          "databases": 0,
          "ip_addresses": 0,
          "prefixes": 0,
          "servers": 1,
          "storages": 0,
          "virtual_machines": 0,
          "vlans": 0
        }
      },
      "region": {
        "city": "Frankfurt 132",
        "country": "Germany 147",
        "site": {
          "id": "loc_Gr47ql4vqAg0m",
          "name": "Frankfurt 132",
          "slug": "FRA113",
          "facility": "Frankfurt 132"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Response

200 - application/vnd.api+json

Success

data
object
meta
object