Reference documentation and code samples for the Compute Engine v1 API enum UsableSubnetwork.Types.Role.
The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or 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\u003eThe latest version of the Google.Cloud.Compute.V1 API is 3.6.0, with a comprehensive list of versions extending back to 1.0.0 for the UsableSubnetwork.Types.Role.\u003c/p\u003e\n"],["\u003cp\u003eThe UsableSubnetwork.Types.Role enum is used to define the function of a subnetwork, specifically when its purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.\u003c/p\u003e\n"],["\u003cp\u003eThe UsableSubnetwork.Types.Role can be either \u003ccode\u003eActive\u003c/code\u003e, which designates the subnetwork currently being used, or \u003ccode\u003eBackup\u003c/code\u003e, which indicates a subnetwork that can be made active or is currently being drained.\u003c/p\u003e\n"],["\u003cp\u003eThere is an additional field of \u003ccode\u003eUndefinedRole\u003c/code\u003e which can be used when the enum has not yet been set to one of the other two options.\u003c/p\u003e\n"]]],[],null,[]]