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\u003eThis document provides reference documentation for the \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum in the Google Cloud Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum defines the direction of network traffic a firewall rule applies to, with options for \u003ccode\u003eINGRESS\u003c/code\u003e (incoming) or \u003ccode\u003eEGRESS\u003c/code\u003e (outgoing) traffic.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eFirewall.Types.Direction\u003c/code\u003e enum is 3.6.0, with a history of versions dating back to 1.0.0, all are contained on the page.\u003c/p\u003e\n"],["\u003cp\u003eThe default direction for firewall rules is \u003ccode\u003eINGRESS\u003c/code\u003e, and specifying \u003ccode\u003esourceTags\u003c/code\u003e is not allowed for \u003ccode\u003eEGRESS\u003c/code\u003e traffic rules.\u003c/p\u003e\n"],["\u003cp\u003eThe enum also includes an \u003ccode\u003eUndefinedDirection\u003c/code\u003e option to represent when the direction field is not set.\u003c/p\u003e\n"]]],[],null,[]]