from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.get_deploy_config(server_id="sv_pRMLydp0dQKr1")
# Handle response
print(res){
"data": {
"id": "sv_pRMLydp0dQKr1",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_0g1mbDwBqLv5B"
],
"user_data": "ud_0g1mbDwBqLv5B",
"raid": "raid-0",
"operating_system": "debian_10",
"hostname": "Asoka",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.get_deploy_config(server_id="sv_pRMLydp0dQKr1")
# Handle response
print(res){
"data": {
"id": "sv_pRMLydp0dQKr1",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_0g1mbDwBqLv5B"
],
"user_data": "ud_0g1mbDwBqLv5B",
"raid": "raid-0",
"operating_system": "debian_10",
"hostname": "Asoka",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}Was this page helpful?