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_iap_settings_set.1
.TH "GCLOUD_IAP_SETTINGS_SET" 1



.SH "NAME"
.HP
gcloud iap settings set \- set the setting for an IAP resource



.SH "SYNOPSIS"
.HP
\f5gcloud iap settings set\fR \fISETTING_FILE\fR [\fB\-\-folder\fR=\fIFOLDER\fR\ \fB\-\-organization\fR=\fIORGANIZATION\fR\ \fB\-\-project\fR=\fIPROJECT\fR\ \fB\-\-region\fR=\fIREGION\fR\ \fB\-\-resource\-type\fR=\fIRESOURCE_TYPE\fR\ \fB\-\-service\fR=\fISERVICE\fR\ \fB\-\-version\fR=\fIVERSION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Set the setting for an IAP resource.



.SH "EXAMPLES"

To set the IAP setting for the resources within an organization, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \e
    \-\-organization=ORGANIZATION_ID
.RE

To set the IAP setting for the resources within a folder, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-folder=FOLDER_ID
.RE

To set the IAP setting for the resources within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID
.RE

To set the IAP setting for web type resources within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=iap_web
.RE

To set the IAP setting for all app engine services within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=app\-engine
.RE

To set the IAP setting for an app engine service within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=app\-engine \-\-service=SERVICE_ID
.RE

To set the IAP setting for an app engine service version within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=app\-engine \-\-service=SERVICE_ID \e
    \-\-version=VERSION_ID
.RE

To set the IAP setting for all backend services within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=backend\-services
.RE

To set the IAP setting for a backend service within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=backend\-services \-\-service=SERVICE_ID
.RE

To set the IAP setting for a region backend service within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=backend\-services \-\-service=SERVICE_ID \e
    \-\-region=REGION_ID
.RE

To set the IAP setting for all forwarding rule within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=forwarding\-rule
.RE

To set the IAP setting for a forwarding rule within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=forwarding\-rule \-\-service=SERVICE_ID
.RE

To set the IAP setting for a region forwarding rule within a project, run:

.RS 2m
$ gcloud iap settings set iap_settings.yaml \-\-project=PROJECT_ID \e
    \-\-resource\-type=forwarding\-rule \-\-service=SERVICE_ID \e
    \-\-region=REGION_ID
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fISETTING_FILE\fR

JSON or YAML file containing the IAP resource settings.

JSON example:

.RS 2m
{
  "access_settings": {
    "oauth_settings": {
      "login_hint": {
        "value": "test_hint"
      }
    },
    "gcip_settings": {
      "tenant_ids": [
        "tenant1\-p9puj",
        "tenant2\-y8rxc"
      ],
      "login_page_uri": {
        "value": "https://test.com/?apiKey=abcd_efgh"
      }
    },
    "cors_settings": {
      "allow_http_options": {
        "value": true
      }
    }
  },
  "application_settings": {
    "csm_settings": {
      "rctoken_aud": {
        "value": "test_aud"
      }
    }
  }
}
.RE

YAML example:

.RS 2m
accessSettings :
  oauthSettings:
    loginHint: test_hint
  gcipSettings:
    tenantIds:
    \- tenant1\-p9puj
    \- tenant2\-y8rxc
    loginPageUri: https://test.com/?apiKey=abcd_efgh
  corsSettings:
    allowHttpOptions: true
applicationSettings:
  csmSettings:
    rctokenAud: test_aud
.RE


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-folder\fR=\fIFOLDER\fR

Folder ID.

.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR

Organization ID.

.TP 2m
\fB\-\-project\fR=\fIPROJECT\fR

Project ID.

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

Region name. Not applicable for \f5app\-engine\fR. Required when
\f5resource\-type=compute\fR and regional scoped. Not applicable for global
scoped compute.

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

Resource type of the IAP resource. For Backend Services, you can use both
\f5compute\fR and \f5backend\-services\fR as resource type. \fIRESOURCE_TYPE\fR
must be one of: \fBapp\-engine\fR, \fBiap_web\fR, \fBcompute\fR,
\fBorganization\fR, \fBfolder\fR, \fBbackend\-services\fR,
\fBforwarding\-rule\fR.

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

Service name. Optional when \f5resource\-type\fR is \f5compute\fR or
\f5app\-engine\fR.

.TP 2m
\fB\-\-version\fR=\fIVERSION\fR

Version name. Not applicable for \f5compute\fR. Optional when
\f5resource\-type=app\-engine\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 settings set
.RE

.RS 2m
$ gcloud beta iap settings set
.RE