1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 15:39:42 +00:00
gcloud-help/gcloud/iap/settings/set

178 lines
5.7 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud iap settings set - set the setting for an IAP resource
SYNOPSIS
gcloud iap settings set SETTING_FILE
[--folder=FOLDER --organization=ORGANIZATION --project=PROJECT
2024-06-19 09:33:28 +00:00
--region=REGION
2022-03-01 04:29:52 +00:00
--resource-type=RESOURCE_TYPE --service=SERVICE --version=VERSION]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Set the setting for an IAP resource.
EXAMPLES
To set the IAP setting for the resources within an organization, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml \
--organization=ORGANIZATION_ID
2022-03-01 04:29:52 +00:00
To set the IAP setting for the resources within a folder, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --folder=FOLDER_ID
2022-03-01 04:29:52 +00:00
To set the IAP setting for the resources within a project, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID
2022-03-01 04:29:52 +00:00
To set the IAP setting for web type resources within a project, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2022-03-01 04:29:52 +00:00
--resource-type=iap_web
To set the IAP setting for all app engine services within a project, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2022-03-01 04:29:52 +00:00
--resource-type=app-engine
To set the IAP setting for an app engine service within a project, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2022-03-01 04:29:52 +00:00
--resource-type=app-engine --service=SERVICE_ID
To set the IAP setting for an app engine service version within a project,
run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2022-03-01 21:43:54 +00:00
--resource-type=app-engine --service=SERVICE_ID \
2022-03-01 04:29:52 +00:00
--version=VERSION_ID
To set the IAP setting for all backend services within a project, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2025-01-08 10:03:00 +00:00
--resource-type=backend-services
2022-03-01 04:29:52 +00:00
To set the IAP setting for a backend service within a project, run:
2024-02-29 10:17:22 +00:00
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2025-01-08 10:03:00 +00:00
--resource-type=backend-services --service=SERVICE_ID
2022-03-01 04:29:52 +00:00
2024-06-19 09:33:28 +00:00
To set the IAP setting for a region backend service within a project, run:
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
2025-01-08 10:03:00 +00:00
--resource-type=backend-services --service=SERVICE_ID \
--region=REGION_ID
2024-06-19 09:33:28 +00:00
2025-02-26 10:38:18 +00:00
To set the IAP setting for all forwarding rule within a project, run:
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
--resource-type=forwarding-rule
To set the IAP setting for a forwarding rule within a project, run:
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
--resource-type=forwarding-rule --service=SERVICE_ID
To set the IAP setting for a region forwarding rule within a project, run:
$ gcloud iap settings set iap_settings.yaml --project=PROJECT_ID \
--resource-type=forwarding-rule --service=SERVICE_ID \
--region=REGION_ID
2022-03-01 04:29:52 +00:00
POSITIONAL ARGUMENTS
SETTING_FILE
JSON or YAML file containing the IAP resource settings.
2025-07-23 10:59:14 +00:00
JSON example:
{
"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"
2022-03-01 04:29:52 +00:00
}
2025-07-23 10:59:14 +00:00
},
"cors_settings": {
"allow_http_options": {
"value": true
2022-03-01 04:29:52 +00:00
}
2025-07-23 10:59:14 +00:00
}
},
"application_settings": {
"csm_settings": {
"rctoken_aud": {
"value": "test_aud"
}
}
}
}
YAML example:
2022-03-01 04:29:52 +00:00
accessSettings :
2025-07-23 10:59:14 +00:00
oauthSettings:
loginHint: test_hint
gcipSettings:
tenantIds:
- tenant1-p9puj
- tenant2-y8rxc
loginPageUri: https://test.com/?apiKey=abcd_efgh
corsSettings:
allowHttpOptions: true
2022-03-01 04:29:52 +00:00
applicationSettings:
2025-07-23 10:59:14 +00:00
csmSettings:
rctokenAud: test_aud
2022-03-01 04:29:52 +00:00
FLAGS
--folder=FOLDER
Folder ID.
--organization=ORGANIZATION
Organization ID.
--project=PROJECT
Project ID.
2024-06-19 09:33:28 +00:00
--region=REGION
2024-10-02 09:51:07 +00:00
Region name. Not applicable for app-engine. Required when
resource-type=compute and regional scoped. Not applicable for global
scoped compute.
2024-06-19 09:33:28 +00:00
2022-03-01 04:29:52 +00:00
--resource-type=RESOURCE_TYPE
2025-01-08 10:03:00 +00:00
Resource type of the IAP resource. For Backend Services, you can use
both compute and backend-services as resource type. RESOURCE_TYPE must
be one of: app-engine, iap_web, compute, organization, folder,
2025-02-26 10:38:18 +00:00
backend-services, forwarding-rule.
2022-03-01 04:29:52 +00:00
--service=SERVICE
Service name. Optional when resource-type is compute or app-engine.
--version=VERSION
2024-10-02 09:51:07 +00:00
Version name. Not applicable for compute. Optional when
resource-type=app-engine.
2022-03-01 04:29:52 +00:00
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 help for details.
NOTES
These variants are also available:
$ gcloud alpha iap settings set
$ gcloud beta iap settings set