import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.servers.updateDeployConfig({
serverId: "sv_lkg1DeYLDvZE5",
requestBody: {
type: "deploy_config",
},
});
console.log(result);
}
run();{
"data": {
"id": "sv_lkg1DeYLDvZE5",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_m5xyZOnNOWM0l"
],
"user_data": "ud_5LA73qkjdaJ2o",
"raid": "raid-1",
"operating_system": "ubuntu_20_04_x64_lts",
"hostname": "my-hostname",
"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.updateDeployConfig({
serverId: "sv_lkg1DeYLDvZE5",
requestBody: {
type: "deploy_config",
},
});
console.log(result);
}
run();{
"data": {
"id": "sv_lkg1DeYLDvZE5",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_m5xyZOnNOWM0l"
],
"user_data": "ud_5LA73qkjdaJ2o",
"raid": "raid-1",
"operating_system": "ubuntu_20_04_x64_lts",
"hostname": "my-hostname",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}The Server ID
Success
Show child attributes
Was this page helpful?