import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.operatingSystems.listPlans({});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "os_mw49QDB5qagKb",
"type": "operating_system",
"attributes": {
"name": "windows_server_2012_r2_std_v281 11.77",
"distro": "CentOS 1",
"slug": "debian_121",
"version": "11.77",
"user": "Rosalinda",
"features": {},
"provisionable_on": [
"g3.a100.medium-39",
"c2.medium.x86-40"
]
}
}
],
"meta": {}
}Lists all operating systems available to deploy and reinstall.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.operatingSystems.listPlans({});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "os_mw49QDB5qagKb",
"type": "operating_system",
"attributes": {
"name": "windows_server_2012_r2_std_v281 11.77",
"distro": "CentOS 1",
"slug": "debian_121",
"version": "11.77",
"user": "Rosalinda",
"features": {},
"provisionable_on": [
"g3.a100.medium-39",
"c2.medium.x86-40"
]
}
}
],
"meta": {}
}Number of items to return per page
x >= 1Page number to return (starts at 1)
x >= 1Success
Show child attributes
Was this page helpful?