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/current/help/man/man1/gcloud_iap_web_enable.1
.TH "GCLOUD_IAP_WEB_ENABLE" 1



.SH "NAME"
.HP
gcloud iap web enable \- enable Cloud Identity\-Aware Proxy (Cloud\ IAP) on an IAP resource



.SH "SYNOPSIS"
.HP
\f5gcloud iap web enable\fR [\fB\-\-oauth2\-client\-id\fR=\fIOAUTH2_CLIENT_ID\fR\ \fB\-\-oauth2\-client\-secret\fR=\fIOAUTH2_CLIENT_SECRET\fR] [\fB\-\-resource\-type\fR=\fIRESOURCE_TYPE\fR\ :\ \fB\-\-region\fR=\fIREGION\fR\ \fB\-\-service\fR=\fISERVICE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

This command enables Cloud Identity\-Aware Proxy on an IAP resource. OAuth 2.0
credentials must be set, or must have been previously set, to enable IAP.



.SH "EXAMPLES"

To enable IAP on an App Engine application, run:

.RS 2m
$ gcloud iap web enable \-\-resource\-type=app\-engine \e
    \-\-oauth2\-client\-id=CLIENT_ID \-\-oauth2\-client\-secret=SECRET
.RE

To enable IAP on a global backend service, run:

.RS 2m
$ gcloud iap web enable \-\-resource\-type=backend\-services \e
    \-\-oauth2\-client\-id=CLIENT_ID \-\-oauth2\-client\-secret=SECRET \e
    \-\-service=SERVICE_ID
.RE

To enable IAP on a region backend service, run:

.RS 2m
$ gcloud iap web enable \-\-resource\-type=backend\-services \e
    \-\-oauth2\-client\-id=CLIENT_ID \-\-oauth2\-client\-secret=SECRET \e
    \-\-service=SERVICE_ID \-\-region=REGION
.RE



.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-oauth2\-client\-id\fR=\fIOAUTH2_CLIENT_ID\fR

OAuth 2.0 client ID to use.

.TP 2m
\fB\-\-oauth2\-client\-secret\fR=\fIOAUTH2_CLIENT_SECRET\fR

OAuth 2.0 client secret to use.

.TP 2m
\fB\-\-resource\-type\fR=\fIRESOURCE_TYPE\fR

Resource type of the IAP resource. \fIRESOURCE_TYPE\fR must be one of:
\fBapp\-engine\fR, \fBbackend\-services\fR.

.TP 2m
\fB\-\-region\fR=\fIREGION\fR

Region name. Not applicable for \f5\fIapp\-engine\fR\fR. Optional when
\f5\fIresource\-type\fR\fR is \f5\fIcompute\fR\fR.

.TP 2m
\fB\-\-service\fR=\fISERVICE\fR

Service name. Required with \f5\-\-resource\-type=backend\-services\fR.


.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"

These variants are also available:

.RS 2m
$ gcloud alpha iap web enable
.RE

.RS 2m
$ gcloud beta iap web enable
.RE