import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.servers.getDeployConfig({
serverId: "sv_pRMLydp0dQKr1",
});
console.log(result);
}
run();{
"data": {
"id": "sv_pRMLydp0dQKr1",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_0g1mbDwBqLv5B"
],
"user_data": "ud_0g1mbDwBqLv5B",
"raid": "raid-0",
"operating_system": "centos_7_4_x64",
"hostname": "Asoka",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.servers.getDeployConfig({
serverId: "sv_pRMLydp0dQKr1",
});
console.log(result);
}
run();{
"data": {
"id": "sv_pRMLydp0dQKr1",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_0g1mbDwBqLv5B"
],
"user_data": "ud_0g1mbDwBqLv5B",
"raid": "raid-0",
"operating_system": "centos_7_4_x64",
"hostname": "Asoka",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}Was this page helpful?