Skip to main content
POST
/
servers
/
{server_id}
/
rescue_mode
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.StartRescueMode(ctx, "sv_695BdK25OevVo")
    if err != nil {
        log.Fatal(err)
    }
    if res.ServerRescue != nil {
        // handle response
    }
}
{
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Response

201 - application/vnd.api+json

Created

meta
object