Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
Allow the node and corresponding instances to retain default maintenance behavior.
MigrateWithinNodeGroup
When maintenance must be done on a node, the instances on that node will be moved to other nodes in the group. Instances with onHostMaintenance = MIGRATE will live migrate to their destinations while instances with onHostMaintenance = TERMINATE will terminate and then restart on their destination nodes if automaticRestart = true.
RestartInPlace
Instances in this group will restart on the same node when maintenance has completed. Instances must have onHostMaintenance = TERMINATE, and they will only restart if automaticRestart = true.
UndefinedMaintenancePolicy
A value indicating that the enum field is not set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eMaintenancePolicy\u003c/code\u003e enum within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, detailing how instances are handled during node maintenance.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.6.0, and the page includes links to documentation for multiple historical versions, ranging from 1.0.0 to 3.6.0 of the Google.Cloud.Compute.V1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaintenancePolicy\u003c/code\u003e enum defines options such as \u003ccode\u003eDEFAULT\u003c/code\u003e, \u003ccode\u003eRESTART_IN_PLACE\u003c/code\u003e, and \u003ccode\u003eMIGRATE_WITHIN_NODE_GROUP\u003c/code\u003e, outlining different behaviors for instance maintenance within a node group.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes an \u003ccode\u003eUndefinedMaintenancePolicy\u003c/code\u003e value to represent if the enum field is not set, as well as an \u003ccode\u003eUnspecified\u003c/code\u003e value that is not further defined.\u003c/p\u003e\n"],["\u003cp\u003eEach version listed is hyperlinked to the specific documentation for that version, making it simple to see the differences throughout the different versions.\u003c/p\u003e\n"]]],[],null,[]]