Example
To create theGCPFirewallHandler object with GCP credentials:
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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GCPFirewallHandler object with GCP credentials:
import os
from superagentx.handler.gcp.firewall import GCPFirewallHandler
# Initialize with a service account file
firewall_handler = GCPFirewallHandler(
creds="/path/to/service-account.json"
)
firewalls = await firewall_handler.get_firewall_details()
for fw in firewalls:
print(fw.name, fw.direction, fw.priority)
