Skip to main content
GET
/
servers
/
{server_id}
/
out_of_band_connection
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.Servers.GetOutOfBand(ctx, "sv_vYAZqGyJOMQ94")
    if err != nil {
        log.Fatal(err)
    }
    if res.OutOfBandConnection != nil {
        // handle response
    }
}
{
  "data": {
    "id": "obc_AW6Q2D9lqKLpr",
    "type": "out_of_band",
    "attributes": {
      "ssh_key": {
        "id": "ssh_5AEmq71XOBkWX",
        "description": "oconnell.example",
        "fingerprint": "ae:17:77:b8:3c:3d:58:d9:5b:10:a1:71:56:b3:03:8b"
      },
      "created_at": "2025-07-16T18:36:59+00:00",
      "username": "server-1",
      "credentials": {
        "user": "wilfred_dicki",
        "password": "8za8ppq9lz"
      },
      "port": "2222",
      "access_ip": "189.1.2.0",
      "server_id": "sv_vYAZqGyJOMQ94",
      "status": "connected"
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

The Server ID

Response

200 - application/vnd.api+json

Success

data
object