Reference documentation and code samples for the Compute Engine v1 API enum NodeGroup.Types.MaintenancePolicy.
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This page provides documentation for the `NodeGroup.Types.MaintenancePolicy` enum within the Google Cloud Compute Engine v1 API, specifically within the .NET context."],["The `NodeGroup.Types.MaintenancePolicy` enum defines how instances are handled during node maintenance, with options including `DEFAULT`, `RESTART_IN_PLACE`, and `MIGRATE_WITHIN_NODE_GROUP`."],["The latest version of this documentation is for version 3.6.0, while the current page displays version 2.13.0 and also includes links to all available versions between 1.0.0 to 3.6.0."],["The documentation details each enum value, explaining their respective behaviors: `Default` retains the default maintenance behavior, `MigrateWithinNodeGroup` moves instances to other nodes, and `RestartInPlace` restarts instances on the same node."],["The page details the `UndefinedMaintenancePolicy` and `Unspecified` fields, that indicate the enum field is not set or not specified respectively."]]],[]]