To update the global forwarding rule "fr-elb" for a load balancer, run:
gdcloud compute forwarding-rules update fr-elb \
--backend-service=network-lb-backend-service \
--load-balancing-scheme=EXTERNAL \
--global
To update the zonal forwarding rule "fr-elb" for a load balancer, run:
gdcloud compute forwarding-rules update fr-elb \
--backend-service=network-lb-backend-service \
--load-balancing-scheme=EXTERNAL
REQUIRED FLAGS
--backend-service string Target backend service that receives the traffic. It has to reference a backend service in the same namespace as this forwarding rule.
--load-balancing-scheme string Load balancing scheme of the forwarding rule. Available values are INTERNAL or EXTERNAL.
OPTIONAL FLAGS
--global If set, the global forwarding rule is updated.
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# gdcloud compute forwarding-rules update\n\nNAME\n----\n\ngdcloud compute forwarding-rules update - Update forwarding rules for a load balancer.\n\nSYNOPSIS\n--------\n\n gdcloud compute forwarding-rules update FORWARDING_RULE_NAME [flags]\n\n### EXAMPLES\n\n To update the global forwarding rule \"fr-elb\" for a load balancer, run:\n\n gdcloud compute forwarding-rules update fr-elb \\\n --backend-service=network-lb-backend-service \\\n --load-balancing-scheme=EXTERNAL \\\n --global\n\n To update the zonal forwarding rule \"fr-elb\" for a load balancer, run:\n\n gdcloud compute forwarding-rules update fr-elb \\\n --backend-service=network-lb-backend-service \\\n --load-balancing-scheme=EXTERNAL\n\n### REQUIRED FLAGS\n\n --backend-service string Target backend service that receives the traffic. It has to reference a backend service in the same namespace as this forwarding rule.\n --load-balancing-scheme string Load balancing scheme of the forwarding rule. Available values are INTERNAL or EXTERNAL.\n\n### OPTIONAL FLAGS\n\n --global If set, the global forwarding rule is updated.\n --zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: \"gdcloud config set core/zone ZONE\". The zone flag is available only in multi-zone environments.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]