Skip to main content
GET
/
virtual_machines
Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os


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

    latitudesh.virtual_machines.list()

    # Use the SDK ...
{
  "data": [
    {
      "id": "vm_0g1mbDwBqLv5B",
      "type": "virtual_machines",
      "attributes": {
        "name": "my-new-vm",
        "status": "Starting",
        "created_at": "2025-07-16T18:37:14+00:00",
        "credentials": {
          "username": "ubuntu",
          "host": "192.168.1.100",
          "password": "secure_password",
          "ssh_keys": []
        },
        "operating_system": null,
        "billing": "hourly",
        "plan": {
          "id": "plan_LGXPdWK8dnNWk",
          "name": "g3.h100.large-122"
        },
        "specs": {
          "vcpu": null,
          "ram": null,
          "storage": null,
          "nic": "1 x 1 Gbps",
          "gpu": "1 x NVIDIA H100 Tensor Core GPU"
        },
        "team": {
          "id": "team_K5G3v44B64ujeQam2nXMcM4Pn5N",
          "name": "630 Team",
          "slug": "630-team",
          "description": "630 Team",
          "address": "Suite 658 5882 Mosciski Lane, Wendellborough, FL 49368",
          "status": "verified",
          "currency": {
            "id": "cur_AW6Q2D9lqKLpr",
            "code": "BRL",
            "name": "Brazilian Real",
            "currency_id": null
          }
        },
        "project": {
          "id": "proj_Z8rodmkAD1jLB",
          "name": "Sleek Copper Pants",
          "slug": "sleek-copper-pants",
          "description": "Small Granite Plate",
          "billing_type": "Normal",
          "billing_method": "Normal",
          "bandwidth_alert": false,
          "environment": null,
          "billing": {
            "subscription_id": null,
            "type": "Normal",
            "method": "Normal"
          },
          "stats": {
            "databases": 0,
            "ip_addresses": 0,
            "prefixes": 0,
            "servers": 0,
            "storages": 0,
            "virtual_machines": 1,
            "vlans": 0
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

filter[project]
string

The project ID or Slug to filter by

extra_fields[virtual_machines]
string

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

Response

200 - application/vnd.api+json

Success

The response is of type file.

I