import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.vpnSessions.list({
filterLocation: "SAO",
});
console.log(result);
}
run();{
"data": [
{
"id": "vpn_mw49QDB5qagKb",
"type": "vpn_sessions",
"attributes": {
"user_name": "Alvaro",
"port": "8443",
"host": "fw04-mh1.maxi.host",
"region": {
"city": "São Paulo 275",
"country": "United States 288",
"site": {
"id": "loc_kjQwdE2bqYNVP",
"name": "São Paulo 275",
"slug": "SAO",
"facility": "São Paulo 275"
}
},
"expires_at": "2026-01-14T15:58:19+00:00",
"created_at": "2026-01-14T15:57:19+00:00",
"updated_at": "2026-01-14T15:57:19+00:00"
}
}
],
"meta": {}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.vpnSessions.list({
filterLocation: "SAO",
});
console.log(result);
}
run();{
"data": [
{
"id": "vpn_mw49QDB5qagKb",
"type": "vpn_sessions",
"attributes": {
"user_name": "Alvaro",
"port": "8443",
"host": "fw04-mh1.maxi.host",
"region": {
"city": "São Paulo 275",
"country": "United States 288",
"site": {
"id": "loc_kjQwdE2bqYNVP",
"name": "São Paulo 275",
"slug": "SAO",
"facility": "São Paulo 275"
}
},
"expires_at": "2026-01-14T15:58:19+00:00",
"created_at": "2026-01-14T15:57:19+00:00",
"updated_at": "2026-01-14T15:57:19+00:00"
}
}
],
"meta": {}
}Was this page helpful?