Reference documentation and code samples for the Compute Engine v1 API enum Firewall.Types.Direction.
Direction of traffic to which this firewall applies, either INGRESS or EGRESS. The default is INGRESS. For EGRESS traffic, you cannot specify the sourceTags fields.
[[["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 available for the \u003ccode\u003eGoogle.Cloud.Compute.V1.Firewall.Types.Direction\u003c/code\u003e is 3.6.0, and the page also provides access to previous versions, including the initial release 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum specifies the traffic direction for a firewall, supporting either \u003ccode\u003eINGRESS\u003c/code\u003e (incoming traffic) or \u003ccode\u003eEGRESS\u003c/code\u003e (outgoing traffic), with \u003ccode\u003eINGRESS\u003c/code\u003e being the default.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines three fields for the \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum: \u003ccode\u003eEgress\u003c/code\u003e for outgoing traffic, \u003ccode\u003eIngress\u003c/code\u003e for incoming traffic, and \u003ccode\u003eUndefinedDirection\u003c/code\u003e for when the field is unset.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for the \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e is \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e, and the documentation is housed within the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]