from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.virtual_machines.list(extra_fields_virtual_machines="credentials")
# Handle response
print(res){
"data": [
{
"id": "vm_zlkg1DegdvZE5",
"type": "virtual_machines",
"attributes": {
"name": "my-new-vm",
"status": "Running",
"created_at": "2026-01-14T15:57:14+00:00",
"primary_ipv4": "192.168.1.100",
"credentials": {
"username": "ubuntu",
"host": "192.168.1.100",
"password": "secure_password",
"ssh_keys": []
},
"operating_system": null,
"site": "MEX192",
"billing": "hourly",
"plan": {
"id": "plan_059EqYVjDQj8p",
"name": "g3.l40s.medium-142"
},
"specs": {
"vcpu": null,
"ram": null,
"storage": null,
"nic": "1 x 1 Gbps",
"gpu": "1 x NVIDIA H100 Tensor Core GPU"
},
"team": {
"id": "team_1ejNe2b5gQiKpxYNxz0bFm2yY38",
"name": "701 Team",
"slug": "701-team",
"description": "701 Team",
"address": "29825 Klocko Trafficway, Wunschhaven, KS 74888",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
},
"project": {
"id": "proj_w49QDB2WDagKb",
"name": "Intelligent Granite Pants",
"slug": "intelligent-granite-pants",
"description": "Aerodynamic Copper Bottle",
"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
}
}
}
}
]
}Show all Team’s Virtual Machines.
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.virtual_machines.list(extra_fields_virtual_machines="credentials")
# Handle response
print(res){
"data": [
{
"id": "vm_zlkg1DegdvZE5",
"type": "virtual_machines",
"attributes": {
"name": "my-new-vm",
"status": "Running",
"created_at": "2026-01-14T15:57:14+00:00",
"primary_ipv4": "192.168.1.100",
"credentials": {
"username": "ubuntu",
"host": "192.168.1.100",
"password": "secure_password",
"ssh_keys": []
},
"operating_system": null,
"site": "MEX192",
"billing": "hourly",
"plan": {
"id": "plan_059EqYVjDQj8p",
"name": "g3.l40s.medium-142"
},
"specs": {
"vcpu": null,
"ram": null,
"storage": null,
"nic": "1 x 1 Gbps",
"gpu": "1 x NVIDIA H100 Tensor Core GPU"
},
"team": {
"id": "team_1ejNe2b5gQiKpxYNxz0bFm2yY38",
"name": "701 Team",
"slug": "701-team",
"description": "701 Team",
"address": "29825 Klocko Trafficway, Wunschhaven, KS 74888",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
},
"project": {
"id": "proj_w49QDB2WDagKb",
"name": "Intelligent Granite Pants",
"slug": "intelligent-granite-pants",
"description": "Aerodynamic Copper Bottle",
"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
}
}
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://www.latitude.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
The project ID or Slug to filter by
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.
Was this page helpful?