名前
gdcloud compute forwarding-rules update - ロードバランサの転送ルールを更新します。
概要
gdcloud compute forwarding-rules update FORWARDING_RULE_NAME [flags]
EXAMPLES
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
必須フラグ
--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.
オプションのフラグ
--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 ワイドフラグ
これらのフラグは、すべてのコマンドで使用できます: --configuration、--format、--help、--project、--quiet。
詳細については、gdcloud CLI リファレンスの概要ページをご覧ください。