gcloud iap oauth-clients create

NAME
gcloud iap oauth-clients create - create a Cloud IAP OAuth client in the project
SYNOPSIS
gcloud iap oauth-clients createBRAND--display_name=DISPLAY_NAME[GCLOUD_WIDE_FLAG]
DESCRIPTION
(DEPRECATED) This command is deprecated and will be non-functionalafter the IAP OAuth Admin APIs are turned down. Jan 19, 2026: Google willdiscontinue support for the IAP OAuth Admin APIs. New projects will not be ableto use these APIs. March 19, 2026: The IAP OAuth Admin APIs will be permanentlyshut down. Access to this feature will no longer be available.

gcloud iap oauth-clients create is used to create an OAuth clientin the project to be used by Cloud IAP. To call this command, the Cloud OAuthbrand for the project must exist and be set for 'internal only'. The new clientis owned by Cloud IAP.

EXAMPLES
To create a Cloud IAP OAuth client for the current project, run:
gcloudiapoauth-clientscreateBRAND--display_name=DISPLAY_NAME

To create a Cloud IAP OAuth client for the project PROJECT_ID, run:

gcloudiapoauth-clientscreateBRAND--display_name=DISPLAY_NAME--project=PROJECT_ID
POSITIONAL ARGUMENTS
Brand resource - Name of the Cloud OAuth brand to create a Cloud IAP OAuthclient under. This represents a Cloud resource. (NOTE) Some attributes are notgiven arguments in this group but can be set in other ways.

To set theproject attribute:

  • provide the argumentbrand on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

BRAND
ID of the brand or fully qualified identifier for the brand.

To set thebrand attribute:

  • provide the argumentbrand on the command line.
REQUIRED FLAGS
--display_name=DISPLAY_NAME
User friendly name for the Cloud IAP OAuth client.
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.

API REFERENCE
This command uses theiap/v1 API. The full documentation for thisAPI can be found at:https://cloud.google.com/iap
NOTES
These variants are also available:
gcloudalphaiapoauth-clientscreate
gcloudbetaiapoauth-clientscreate

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-09-30 UTC.