Reference documentation and code samples for the Compute Engine v1 API enum UsableSubnetwork.Types.StackType.
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
[[["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 webpage provides documentation for the \u003ccode\u003eUsableSubnetwork.Types.StackType\u003c/code\u003e enum within the Google Compute Engine v1 API, detailing different stack types available for subnets.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.6.0, and it provides documentation as far back as version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUsableSubnetwork.Types.StackType\u003c/code\u003e enum defines three possible values: \u003ccode\u003eIpv4Ipv6\u003c/code\u003e, which allows for both IPv4 and IPv6 addresses; \u003ccode\u003eIpv4Only\u003c/code\u003e, which only allows for IPv4 addresses; and \u003ccode\u003eUndefinedStackType\u003c/code\u003e which indicates no value is set.\u003c/p\u003e\n"],["\u003cp\u003eThe default stack type, if unspecified, is \u003ccode\u003eIpv4Only\u003c/code\u003e, meaning new virtual machines will receive only an IPv4 addresses by default.\u003c/p\u003e\n"]]],[],null,[]]