import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.privateNetworks.create({
data: {
type: "virtual_network",
attributes: {
description: "São Paulo VLAN",
site: "MIA",
project: "ergonomic-steel-bag",
},
},
});
console.log(result);
}
run();{
"data": {
"id": "vlan_3YjJOLQjdvZ87",
"type": "virtual_networks",
"attributes": {
"tags": [],
"vid": 2000,
"name": "MIA-2000",
"description": "São Paulo VLAN",
"site": "MIA",
"created_at": "2026-01-14T15:57:17+00:00"
}
},
"meta": {}
}Creates a new Virtual Network.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.privateNetworks.create({
data: {
type: "virtual_network",
attributes: {
description: "São Paulo VLAN",
site: "MIA",
project: "ergonomic-steel-bag",
},
},
});
console.log(result);
}
run();{
"data": {
"id": "vlan_3YjJOLQjdvZ87",
"type": "virtual_networks",
"attributes": {
"tags": [],
"vid": 2000,
"name": "MIA-2000",
"description": "São Paulo VLAN",
"site": "MIA",
"created_at": "2026-01-14T15:57:17+00:00"
}
},
"meta": {}
}Was this page helpful?