gcloud beta iap web enable Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta iap web enable - enable Cloud Identity-Aware Proxy(Cloud IAP) on an IAP resource
- SYNOPSIS
gcloud beta iap web enable[--oauth2-client-id=OAUTH2_CLIENT_ID--oauth2-client-secret=OAUTH2_CLIENT_SECRET][--resource-type=RESOURCE_TYPE:--region=REGION--service=SERVICE][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)This command enables Cloud Identity-Aware Proxy on an IAPresource. OAuth 2.0 credentials must be set, or must have been previously set,to enable IAP.- EXAMPLES
- To enable IAP on an App Engine application, run:
gcloudbetaiapwebenable--resource-type=app-engine--oauth2-client-id=CLIENT_ID--oauth2-client-secret=SECRETTo enable IAP on a global backend service, run:
gcloudbetaiapwebenable--resource-type=backend-services--oauth2-client-id=CLIENT_ID--oauth2-client-secret=SECRET--service=SERVICE_IDTo enable IAP on a region backend service, run:
gcloudbetaiapwebenable--resource-type=backend-services--oauth2-client-id=CLIENT_ID--oauth2-client-secret=SECRET--service=SERVICE_ID--region=REGION - FLAGS
--oauth2-client-id=OAUTH2_CLIENT_ID- OAuth 2.0 client ID to use.
--oauth2-client-secret=OAUTH2_CLIENT_SECRET- OAuth 2.0 client secret to use.
--resource-type=RESOURCE_TYPE- Resource type of the IAP resource.
RESOURCE_TYPEmust beone of:app-engine,backend-services. --region=REGION- Region name. Not applicable for
.Optional whenapp-engineisresource-type.compute --service=SERVICE- Service name. Required with
--resource-type=backend-services.
- 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
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudiapwebenablegcloudalphaiapwebenable
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.