Skip to main content
Google Cloud Firewall is a network security feature that lets you define rules to allow or block traffic to and from your VM instances. This handler helps you list firewall rules in your GCP project using service account authentication. It makes it easier to fetch firewall configurations for auditing, monitoring, or compliance checks.

Example

To create the GCPFirewallHandler object with GCP credentials:
List Firewall Rules:
The get_firewall_details method retrieves all firewall rules in your GCP project. It returns details like name, allowed protocols/ports, source/destination ranges, and priority.