-
--global
-
If provided, assume the forwarding rules are global. A forwarding rule
is global if it references a target HTTP proxy.
-
--region
REGION
-
The region of the forwarding rule to operate on. If not specified, you will be prompted to select a region.
- To avoid prompting when this flag is omitted, you can set the
compute/region
property:
$ gcloud config set compute/region REGION
- A list of regions can fetched by running:
$ gcloud compute regions list
- To unset the property, run:
$ gcloud config unset compute/region
- Alternatively, the region can be stored in the environment
variable
CLOUDSDK_COMPUTE_REGION
.
-
--target-http-proxy
TARGET_HTTP_PROXY
-
The target HTTP proxy that will receive the traffic.
-
--target-instance
TARGET_INSTANCE
-
The name of the target instance that will receive the traffic. The
target instance must be in a zone that’s in the forwarding rule’s
region. Global forwarding rules may not direct traffic to target
instances.
If not specified, you will be prompted to select a zone.
- To avoid prompting when this flag is omitted, you can set the
compute/zone
property:
$ gcloud config set compute/zone ZONE
- A list of zones can fetched by running:
$ gcloud compute zones list
- To unset the property, run:
$ gcloud config unset compute/zone
- Alternatively, the zone can be stored in the environment variable
CLOUDSDK_COMPUTE_ZONE
.
-
--target-instance-zone
TARGET_INSTANCE_ZONE
-
The zone of the target instance.
-
--target-pool
TARGET_POOL
-
The target pool that will receive the traffic. The target pool
must be in the same region as the forwarding rule. Global
forwarding rules may not direct traffic to target pools.