File: //snap/google-cloud-cli/current/help/man/man1/gcloud_beta_iap_web_enable.1
.TH "GCLOUD_BETA_IAP_WEB_ENABLE" 1
.SH "NAME"
.HP
gcloud beta iap web enable \- enable Cloud Identity\-Aware Proxy (Cloud\ IAP) on an IAP resource
.SH "SYNOPSIS"
.HP
\f5gcloud beta 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"
\fB(BETA)\fR 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 beta 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 beta 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 beta 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"
This command is currently in beta and might change without notice. These
variants are also available:
.RS 2m
$ gcloud iap web enable
.RE
.RS 2m
$ gcloud alpha iap web enable
.RE