Reference documentation and code samples for the Compute Engine v1 API enum Subnetwork.Types.Purpose.
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
[[["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-24 UTC."],[[["The latest version of the Google.Cloud.Compute.V1 API for Subnetwork.Types.Purpose is 3.6.0, with numerous prior versions available dating back to version 1.0.0."],["Subnetwork.Types.Purpose is an enum used within the Compute Engine v1 API, with its primary function being to define the intended use of a given resource, with possible purposes including `PRIVATE`, `REGIONAL_MANAGED_PROXY`, `PRIVATE_SERVICE_CONNECT`, or `INTERNAL_HTTPS_LOAD_BALANCER`."],["The `Subnetwork.Types.Purpose` enum has fields that include `InternalHttpsLoadBalancer`, `Private`, `PrivateRfc1918`, `PrivateServiceConnect`, `RegionalManagedProxy`, and `UndefinedPurpose`, each serving a distinct purpose in defining the subnet's function."],["The default subnet purpose is `PRIVATE` and is for subnets created by users or that are automatically created, while the `REGIONAL_MANAGED_PROXY` purpose is recommended for all regional Envoy load balancers."],["The enableFlowLogs field is not compatible when the subnet purpose is set to `REGIONAL_MANAGED_PROXY`."]]],[]]