gcloud services vpc-peerings update --network=NETWORK [--async] [--force] [--ranges=RANGES] [--service=SERVICE; default="servicenetworking.googleapis.com"] [GCLOUD_WIDE_FLAG …]
my-network on the current
project to a service called your-service with IP CIDR ranges
google-range-1,google-range-2 for the service to use, run:
gcloud services vpc-peerings update --network=my-network --service=your-service --ranges=google-range-1,google-range-2To run the same command asynchronously (non-blocking), run:
gcloud services vpc-peerings update --network=my-network --service=your-service --ranges=google-range-1,google-range-2 --async--network=NETWORK--async--force--ranges=RANGES--service=SERVICE; default="servicenetworking.googleapis.com"--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha services vpc-peerings updategcloud beta services vpc-peerings update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.