HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_beta_services_vpc-peerings_connect.1
.TH "GCLOUD_BETA_SERVICES_VPC\-PEERINGS_CONNECT" 1



.SH "NAME"
.HP
gcloud beta services vpc\-peerings connect \- connect to a service via VPC peering for a project network



.SH "SYNOPSIS"
.HP
\f5gcloud beta services vpc\-peerings connect\fR \fB\-\-network\fR=\fINETWORK\fR \fB\-\-ranges\fR=\fIRANGES\fR [\fB\-\-async\fR] [\fB\-\-service\fR=\fISERVICE\fR;\ default="servicenetworking.googleapis.com"] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR This command connects a private service connection to a service via
a VPC network.



.SH "EXAMPLES"

To connect a network called \f5my\-network\fR on the current project to a
service called \f5your\-service\fR with IP CIDR ranges
\f5google\-range\-1,google\-range\-2\fR for the service to use, run:

.RS 2m
$ gcloud beta services vpc\-peerings connect \-\-network=my\-network \e
    \-\-service=your\-service \-\-ranges=google\-range\-1,google\-range\-2
.RE

To run the same command asynchronously (non\-blocking), run:

.RS 2m
$ gcloud beta services vpc\-peerings connect \-\-network=my\-network \e
    \-\-service=your\-service \-\-ranges=google\-range\-1,google\-range\-2 \e
    \-\-async
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-network\fR=\fINETWORK\fR

The network in the current project to be peered with the service

.TP 2m
\fB\-\-ranges\fR=\fIRANGES\fR

The names of IP CIDR ranges for service to use.


.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.

.TP 2m
\fB\-\-service\fR=\fISERVICE\fR; default="servicenetworking.googleapis.com"

The service to connect to


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud services vpc\-peerings connect
.RE

.RS 2m
$ gcloud alpha services vpc\-peerings connect
.RE