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


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

    res = latitudesh.servers.get(server_id="sv_aNmodjGeqbE8W")

    # Handle response
    print(res)
{
  "data": {
    "id": "sv_Gr47qleMDAg0m",
    "type": "servers",
    "attributes": {
      "tags": [],
      "hostname": "Hostname",
      "label": "203126NODEEM",
      "price": 599,
      "role": "Bare Metal",
      "primary_ipv4": "171.105.213.73",
      "primary_ipv6": "539e:7347:6e9a:c432:bb5a:87b4:2ce1:4566",
      "status": "on",
      "ipmi_status": "Normal",
      "created_at": null,
      "scheduled_deletion_at": null,
      "locked": false,
      "rescue_allowed": false,
      "region": {
        "city": "São Paulo",
        "country": "Mexico",
        "site": {
          "id": "loc_A05EdQL1OvKYQ",
          "name": "São Paulo",
          "slug": "SAO",
          "facility": "São Paulo",
          "rack_id": "rack_6VE1Wd37dXnZJ"
        }
      },
      "team": {
        "id": "team_8mKNxlmL2McYo7Jz87KlCXynmenj",
        "name": "270 Team",
        "slug": "270-team",
        "description": "270 Team",
        "address": "Apt. 279 839 Boehm Street, South Randall, OH 69160",
        "currency": {
          "id": "cur_AW6Q2D9lqKLpr",
          "code": "BRL",
          "name": "Brazilian Real",
          "currency_id": null
        },
        "status": "verified",
        "feature_flags": []
      },
      "project": {
        "id": "proj_KXgRdRyoOv9k5",
        "name": "Rustic Silk Knife",
        "slug": "rustic-silk-knife",
        "description": "Heavy Duty Concrete Keyboard",
        "provisioning_type": "on_demand",
        "billing_type": "Normal",
        "billing_method": "Normal",
        "bandwidth_alert": false,
        "environment": null,
        "billing": {},
        "stats": {
          "databases": 0,
          "ip_addresses": 2,
          "prefixes": 0,
          "servers": 1,
          "storages": 0,
          "virtual_machines": 0,
          "vlans": 0
        }
      },
      "plan": {
        "id": "plan_aNmodj4eDbE8W",
        "name": "c2.large.arm",
        "slug": "c2-large-arm",
        "billing": "hourly"
      },
      "interfaces": [
        {
          "role": "ipmi",
          "name": "IPMI",
          "mac_address": "00:11:22:33:44:55",
          "description": "IPMI Interface"
        },
        {
          "role": "internal",
          "name": "PXE",
          "mac_address": "66:77:88:99:aa:bb",
          "description": "PXE Interface"
        }
      ],
      "operating_system": {
        "name": "Ubuntu (18.04 x64 LTS)",
        "slug": "ubuntu_18_04_x64_lts",
        "version": "18.04 x64 LTS",
        "features": {
          "raid": true,
          "ssh_keys": true
        },
        "distro": {
          "name": "Ubuntu",
          "slug": "ubuntu",
          "series": "bionic"
        }
      },
      "specs": {
        "cpu": "",
        "disk": "",
        "ram": "",
        "nic": "",
        "gpu": null
      }
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

The Server ID

Query Parameters

extra_fields[servers]
string

The credentials are provided as extra attributes that is lazy loaded. To request it, just set extra_fields[servers]=credentials in the query string.

Response

200 - application/vnd.api+json

Success

data
object
meta
object
I