Skip to main content
POST
/
servers
/
{server_id}
/
out_of_band_connection
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.create_out_of_band_connection(server_id="sv_z2A3DVpQdnawP", data={
        "type": latitudesh_python_sdk.CreateServerOutOfBandServersType.OUT_OF_BAND,
        "attributes": {
            "ssh_key_id": "ssh_NGnzRD5ADM5yw",
        },
    })

    # Handle response
    print(res)
{
  "data": {
    "id": "obc_mw49QDB5qagKb",
    "type": "out_of_band",
    "attributes": {
      "ssh_key": {
        "id": "ssh_w49QDB55qagKb",
        "description": "oberbrunner.test",
        "fingerprint": "7d:46:c6:b5:ca:28:43:5e:b9:2c:61:9e:fc:a6:5d:59"
      },
      "created_at": "2025-07-16T18:36:57+00:00",
      "username": "server-1",
      "credentials": {
        "user": "phillip_legros",
        "password": "g5gyubdn5p"
      },
      "port": "2222",
      "access_ip": "189.1.2.0",
      "server_id": "sv_059EqYX2dQj8p",
      "status": "connected"
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Body

data
object
required

Response

201 - application/vnd.api+json

Created

data
object
I