- gcloud alpha services vpc-peerings list - list connections to a service via VPC peering for a project network
gcloud alpha services vpc-peerings list --network=NETWORK [--service=SERVICE; default="servicenetworking.googleapis.com"] [GCLOUD_WIDE_FLAG ...]
(ALPHA) This command lists connections of a network to a service via VPC
The network in the current project to list connections with the service
- --service=SERVICE; default="servicenetworking.googleapis.com"
The service to list connections
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
To list connections of a network called my-network to a service called your-service, run:
$ gcloud alpha services vpc-peerings list --network my-network \
--service your-service \
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support This variant is also available:
- $ gcloud beta services vpc-peerings list