ip Address
Parameters
IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances:
When the
targetis set totargetGrpcProxyandvalidateForProxylessis set totrue, theIPAddressshould be set to0.0.0.0.When the
targetis a Private Service Connect Google APIs bundle, you must specify anIPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule:IP address number, as in
100.1.2.3IPv6 address range, as in
2600:1234::/96Full resource URL, as in
https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-namePartial URL or by name, as in:
projects/project_id/regions/region/addresses/address-nameregions/region/addresses/address-nameglobal/addresses/address-nameaddress-nameThe forwarding rule'stargetorbackendService, and in most cases, also theloadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP addressspecifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an
IPAddress, the API always returns the IP address number.