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\u003eFirewall.Types.Direction\u003c/code\u003e enum is 3.6.0, within the Google Cloud Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum, which defines the direction of traffic, whether \u003ccode\u003eINGRESS\u003c/code\u003e (incoming) or \u003ccode\u003eEGRESS\u003c/code\u003e (outgoing), that a firewall rule applies to.\u003c/p\u003e\n"],["\u003cp\u003eThe default traffic direction for firewall rules is \u003ccode\u003eINGRESS\u003c/code\u003e, and \u003ccode\u003eEGRESS\u003c/code\u003e rules cannot specify source tags.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation page includes links to various historical versions of the \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum, ranging from version 1.0.0 up to the current version of 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe enum has three defined fields, \u003ccode\u003eEgress\u003c/code\u003e, \u003ccode\u003eIngress\u003c/code\u003e, and \u003ccode\u003eUndefinedDirection\u003c/code\u003e where \u003ccode\u003eUndefinedDirection\u003c/code\u003e is used when the enum is not set, \u003ccode\u003eEgress\u003c/code\u003e refers to outgoing traffic, and \u003ccode\u003eIngress\u003c/code\u003e refers to incoming traffic.\u003c/p\u003e\n"]]],[],null,[]]