Reference documentation and code samples for the Compute Engine v1 API enum Subnetwork.Types.Role.
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
[[["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 page provides reference documentation for the \u003ccode\u003eSubnetwork.Types.Role\u003c/code\u003e enum in the Google Cloud Compute Engine v1 API, detailing the various roles a subnetwork can have.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.6.0, but it also offers historical documentation for version 1.0.0 all the way up to the latest, including versions such as 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubnetwork.Types.Role\u003c/code\u003e enum defines three possible roles: \u003ccode\u003eActive\u003c/code\u003e for the subnet currently in use, \u003ccode\u003eBackup\u003c/code\u003e for a subnet that can be promoted, and \u003ccode\u003eUndefinedRole\u003c/code\u003e indicating the field is unset.\u003c/p\u003e\n"],["\u003cp\u003eThis enum is primarily used in scenarios where \u003ccode\u003epurpose = REGIONAL_MANAGED_PROXY\u003c/code\u003e, specifically for Envoy-based load balancers in a region, and the role of a subnetwork can be changed through a patch request.\u003c/p\u003e\n"]]],[],null,[]]