Reference documentation and code samples for the Compute Engine v1 API enum AutoscalingPolicy.Types.Mode.
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
[[["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 document provides reference documentation for the \u003ccode\u003eAutoscalingPolicy.Types.Mode\u003c/code\u003e enum within the Google Compute Engine v1 API, detailing available operating modes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is 3.6.0, and the page lists versions of this documentation dating back to version 1.0.0, with the current context being version 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAutoscalingPolicy.Types.Mode\u003c/code\u003e enum defines four specific operating modes: \u003ccode\u003eOFF\u003c/code\u003e, \u003ccode\u003eON\u003c/code\u003e, \u003ccode\u003eONLY_SCALE_OUT\u003c/code\u003e, and \u003ccode\u003eONLY_UP\u003c/code\u003e, in addition to \u003ccode\u003eUndefinedMode\u003c/code\u003e which is used when an enum field is not set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOFF\u003c/code\u003e mode will not scale in or out, but keeps the size that would be recommended if it was enabled; \u003ccode\u003eON\u003c/code\u003e mode will scale in and out according to the policy; and the \u003ccode\u003eONLY_SCALE_OUT\u003c/code\u003e or \u003ccode\u003eONLY_UP\u003c/code\u003e modes will only create new VM's, not reducing them.\u003c/p\u003e\n"]]],[],null,[]]