Google Cloud Load Balancer is a fully distributed, software-defined managed service for distributing traffic across multiple instances, services, and regions.
It supports HTTP(S), TCP/SSL, and UDP load balancing, integrates seamlessly with Google Cloud services, and provides high availability, scalability, and global reach.The GCPLoadBalancerHandler provides programmatic access to all load balancer components, including URL maps, backend services, proxies, forwarding rules, SSL certificates, and health checks.
To create the GCPLoadBalancerHandler with Google Cloud credentials:
Copy
import osfrom superagentx_handlers.gcp.load_balancer import GCPLoadBalancerHandler# Initialize handler with a service account filehandler = GCPLoadBalancerHandler( creds=os.getenv("GOOGLE_APPLICATION_CREDENTIALS"))
List All Load Balancer Components:
Fetches all components (URL maps, backend services, proxies, SSL certs, health checks) concurrently.