Skip to main content
GET
/
servers
/
{server_id}
/
deploy_config
Typescript (SDK)
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": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

The Server ID

Response

200 - application/vnd.api+json

Success

data
object