You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit extends the `instance-reconfigure` API endpoint added in
#6585 to also allow setting instance auto-restart policies (as added in
#6503).
I've also added the actual auto-restart policy to the external API
instance view, along with the boolean `auto_restart_enabled` added in
#6503. This way, it's possible to change just the boot disk by providing
the current auto-restart policy in an instance POST.
Copy file name to clipboardExpand all lines: openapi/nexus-internal.json
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3305,6 +3305,15 @@
3305
3305
"description": "`true` if this instance's auto-restart policy will permit the control plane to automatically restart it if it enters the `Failed` state.",
3306
3306
"type": "boolean"
3307
3307
},
3308
+
"auto_restart_policy": {
3309
+
"nullable": true,
3310
+
"description": "The auto-restart policy configured for this instance, or `None` if no explicit policy is configured.\n\nIf this is not present, then this instance uses the default auto-restart policy, which may or may not allow it to be restarted. The `auto_restart_enabled` field indicates whether the instance will be automatically restarted.",
"description": "the ID of the disk used to boot this Instance, if a specific one is assigned.",
@@ -3392,6 +3401,25 @@
3392
3401
"time_run_state_updated"
3393
3402
]
3394
3403
},
3404
+
"InstanceAutoRestartPolicy": {
3405
+
"description": "A policy determining when an instance should be automatically restarted by the control plane.",
3406
+
"oneOf": [
3407
+
{
3408
+
"description": "The instance should not be automatically restarted by the control plane if it fails.",
3409
+
"type": "string",
3410
+
"enum": [
3411
+
"never"
3412
+
]
3413
+
},
3414
+
{
3415
+
"description": "If this instance is running and unexpectedly fails (e.g. due to a host software crash or unexpected host reboot), the control plane will make a best-effort attempt to restart it. The control plane may choose not to restart the instance to preserve the overall availability of the system.",
3416
+
"type": "string",
3417
+
"enum": [
3418
+
"best_effort"
3419
+
]
3420
+
}
3421
+
]
3422
+
},
3395
3423
"InstanceCpuCount": {
3396
3424
"description": "The number of CPUs in an Instance",
Copy file name to clipboardExpand all lines: openapi/nexus.json
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15156,6 +15156,15 @@
15156
15156
"description": "`true` if this instance's auto-restart policy will permit the control plane to automatically restart it if it enters the `Failed` state.",
15157
15157
"type": "boolean"
15158
15158
},
15159
+
"auto_restart_policy": {
15160
+
"nullable": true,
15161
+
"description": "The auto-restart policy configured for this instance, or `None` if no explicit policy is configured.\n\nIf this is not present, then this instance uses the default auto-restart policy, which may or may not allow it to be restarted. The `auto_restart_enabled` field indicates whether the instance will be automatically restarted.",
0 commit comments