File: //snap/google-cloud-cli/396/help/man/man1/gcloud_iam_oauth-clients_credentials_create.1
.TH "GCLOUD_IAM_OAUTH\-CLIENTS_CREDENTIALS_CREATE" 1
.SH "NAME"
.HP
gcloud iam oauth\-clients credentials create \- create an OAuth client credential
.SH "SYNOPSIS"
.HP
\f5gcloud iam oauth\-clients credentials create\fR (\fICREDENTIAL\fR\ :\ \fB\-\-location\fR=\fILOCATION\fR\ \fB\-\-oauth\-client\fR=\fIOAUTH_CLIENT\fR) [\fB\-\-disabled\fR] [\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Create a new OAuth client credential.
.SH "EXAMPLES"
To create a disabled OAuth client credential with ID
\f5\fImy\-oauth\-client\-credential\fR\fR in the default project, run:
.RS 2m
$ gcloud iam oauth\-clients credentials create \e
my\-oauth\-client\-credential \-\-location="global" \e
\-\-oauth\-client="my\-oauth\-client" \e
\-\-display\-name="My OAuth client credential" \-\-disabled
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Oauth client credential resource \- The OAuth client credential to create. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5credential\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fICREDENTIAL\fR
ID of the oauth client credential or fully qualified identifier for the oauth
client credential.
To set the \f5credential\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5credential\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
The location name.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5credential\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line.
.RE
.sp
.TP 2m
\fB\-\-oauth\-client\fR=\fIOAUTH_CLIENT\fR
ID to use for the OAuth client, which becomes the final component of the
resource name. This value should be 4\-32 characters, and may contain the
characters [a\-z0\-9\-]. The prefix \f5gcp\-\fR is reserved for use by Google,
and may not be specified.
To set the \f5oauth\-client\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5credential\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-oauth\-client\fR on the command line.
.RE
.sp
.RE
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-disabled\fR
Disables the OAuth client credential. You cannot use a disabled OAuth client
credential for OAuth. Include \f5\-\-no\-disabled\fR to enable a disabled OAuth
client credential.
.TP 2m
\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR
A display name for the OAuth client credential. Cannot exceed 32 characters.
.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 "API REFERENCE"
This command uses the \fBiam/v1\fR API. The full documentation for this API can
be found at: https://cloud.google.com/iam/
.SH "NOTES"
This variant is also available:
.RS 2m
$ gcloud alpha iam oauth\-clients credentials create
.RE