Skip to main content
POST
/
vms
/
{vm_id}
/
set-auto-restart
Set auto-restart
curl --request POST \
  --url https://api.nova-cloud.ai/vms/{vm_id}/set-auto-restart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "auto_restart": true
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Use a JWT access token or API key (prefixed with nv_)

Path Parameters

vm_id
string<uuid>
required

Body

application/json
auto_restart
boolean
required

Enable or disable auto-restart for interrupted VMs

Response

200 - application/json

Auto-restart setting updated

message
string