Reference documentation and code samples for the Compute Engine v1 API enum NetworkInterface.Types.StackType.
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.
[[["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-08-08 UTC."],[[["\u003cp\u003eThis document provides a comprehensive list of versions for the \u003ccode\u003eNetworkInterface.Types.StackType\u003c/code\u003e enum within the Google Cloud Compute V1 API, ranging from version 1.0.0 to the latest version 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkInterface.Types.StackType\u003c/code\u003e enum defines the types of IP addresses a network interface can have, including \u003ccode\u003eIpv4Only\u003c/code\u003e, \u003ccode\u003eIpv4Ipv6\u003c/code\u003e, \u003ccode\u003eIpv6Only\u003c/code\u003e, and \u003ccode\u003eUndefinedStackType\u003c/code\u003e, and \u003ccode\u003eUnspecifiedStackType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eNetworkInterface.Types.StackType\u003c/code\u003e enum is version 3.6.0, which is part of the Google Cloud Compute V1 API's namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe default stack type, if not otherwise specified, is \u003ccode\u003eIPV4_ONLY\u003c/code\u003e, meaning the network interface will be assigned only IPv4 addresses.\u003c/p\u003e\n"],["\u003cp\u003eThe documented information for this API can be found within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace and the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]