gcloud iap oauth-clients create - create a Cloud IAP OAuth client in the project
gcloud iap oauth-clients create BRAND --display_name=DISPLAY_NAME [GCLOUD_WIDE_FLAG ...]
gcloud iap oauth-clients create is used to create an OAuth client in the project to be used by Cloud IAP. To call this command, the Cloud OAuth brand for the project must exist and be set for 'internal only'. The new client is owned by Cloud IAP.
To create a Cloud IAP OAuth client for the current project, run:
$ gcloud iap oauth-clients create BRAND --display_name=DISPLAY_NAME
To create a Cloud IAP OAuth client for the project PROJECT_ID, run:
$ gcloud iap oauth-clients create BRAND \ --display_name=DISPLAY_NAME --project=PROJECT_ID
- Brand resource - Name of the Cloud OAuth brand to create a Cloud IAP OAuth
client under. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute:
- —
provide the argument brand on the command line with a fully specified name;
- —
provide the argument --project on the command line;
- —
set the property core/project.
This must be specified.
- BRAND
ID of the brand or fully qualified identifier for the brand. To set the brand attribute:
provide the argument brand on the command line.
- --display_name=DISPLAY_NAME
User friendly name for the Cloud IAP OAuth client.
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.
This command uses the iap/v1 API. The full documentation for this API can be found at: https://cloud.google.com/iap
These variants are also available:
$ gcloud alpha iap oauth-clients create
$ gcloud beta iap oauth-clients create