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


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

    res = latitudesh.servers.unlock(server_id="sv_aNmodjoyqbE8W")

    # Handle response
    print(res)
{
  "data": {
    "id": "sv_5AEmq7xMDBkWX",
    "type": "servers",
    "attributes": {
      "hostname": "Durable Rubber Shoes",
      "label": "167521NODECL",
      "price": 599,
      "ipmi_status": "Normal",
      "scheduled_deletion_at": null,
      "status": "unknown",
      "role": "Storage",
      "primary_ipv4": "114.154.255.79",
      "created_at": null,
      "locked": false,
      "team": {
        "id": "team_87E9ev31amIKVpaG9G1YH6bJL04",
        "name": "438 Team",
        "slug": "438-team",
        "description": "438 Team",
        "address": "Apt. 872 986 Tora Mountains, North Wandaport, IA 08437",
        "status": "verified",
        "currency": {
          "id": "cur_AW6Q2D9lqKLpr",
          "code": "BRL",
          "name": "Brazilian Real",
          "currency_id": null
        }
      },
      "project": {
        "id": "proj_LGXPdWX4qnNWk",
        "name": "Mediocre Concrete Shoes",
        "slug": "mediocre-concrete-shoes",
        "description": "Intelligent Wooden Knife",
        "billing_type": "Normal",
        "billing_method": "Normal",
        "bandwidth_alert": false,
        "environment": null,
        "billing": {
          "subscription_id": "sub_lat09fkzpobtiz",
          "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_KXgRdRyoOv9k5",
          "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