Skip to main content
PATCH
/
servers
/
{server_id}
/
deploy_config
Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os


with Latitudesh(
    bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:

    res = latitudesh.servers.update_deploy_config(server_id="sv_g1mbDweZdLv5B", type_=latitudesh_python_sdk.UpdateServerDeployConfigServersType.DEPLOY_CONFIG)

    # Handle response
    print(res)
{
  "data": {
    "id": "sv_0L6WO141DPlXy",
    "type": "deploy_config",
    "attributes": {
      "ssh_keys": [
        "ssh_GKN4ydzgqVob3"
      ],
      "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": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

The Server ID

Body

type
enum<string>
required
Available options:
deploy_config
attributes
object

Response

200 - application/vnd.api+json

Success

data
object
I