Skip to main content
POST
/
servers
/
{server_id}
/
remote_access
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.CreateIpmiSession(ctx, "sv_e8pKq0xYqWAob")
    if err != nil {
        log.Fatal(err)
    }
    if res.IpmiSession != nil {
        // handle response
    }
}
{
  "data": {
    "id": "ipmi_mw49QDB5qagKb",
    "type": "ipmi_sessions",
    "attributes": {
      "ipmi_address": "10.0.10.1",
      "ipmi_url": null,
      "ipmi_username": "customer_access",
      "ipmi_password": "ipmi_password"
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Response

201 - application/vnd.api+json

Created

data
object