Skip to main content
POST
/
servers
/
{server_id}
/
lock
Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os


with Latitudesh(
    bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:

    res = latitudesh.servers.lock(server_id="sv_059EqYX2dQj8p")

    # Handle response
    print(res)
{
  "data": {
    "id": "sv_RMLydpoXOQKr1",
    "type": "servers",
    "attributes": {
      "hostname": "Practical Linen Chair",
      "label": "834976NODEXR",
      "price": 599,
      "ipmi_status": "Normal",
      "scheduled_deletion_at": null,
      "status": "unknown",
      "role": "Bare Metal Unmanaged",
      "primary_ipv4": "12.233.187.10",
      "created_at": null,
      "locked": true,
      "team": {
        "id": "team_56p6jJ3bzRF587xo6rvwf6VwgLbv",
        "name": "433 Team",
        "slug": "433-team",
        "description": "433 Team",
        "address": "5236 Hien Center, South Kelleychester, FL 98441",
        "status": "verified",
        "currency": {
          "id": "cur_AW6Q2D9lqKLpr",
          "code": "BRL",
          "name": "Brazilian Real",
          "currency_id": null
        }
      },
      "project": {
        "id": "proj_Qkm7dXRAD8nZV",
        "name": "Sleek Iron Pants",
        "slug": "sleek-iron-pants",
        "description": "Fantastic Cotton Clock",
        "billing_type": "Normal",
        "billing_method": "Normal",
        "bandwidth_alert": false,
        "environment": null,
        "billing": {
          "subscription_id": "sub_cc8763jmlb30v3",
          "type": "Normal",
          "method": "Normal"
        },
        "stats": {
          "databases": 0,
          "ip_addresses": 0,
          "prefixes": 0,
          "servers": 1,
          "storages": 0,
          "virtual_machines": 0,
          "vlans": 0
        }
      },
      "region": {
        "city": "Sydney",
        "country": "Australia",
        "site": {
          "id": "loc_wg3ZDrwWO5QlP",
          "name": "Sydney",
          "slug": "SYD",
          "facility": "Sydney"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Response

200 - application/vnd.api+json

Success

data
object
meta
object
I