File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_services_identity_create.1
.TH "GCLOUD_ALPHA_SERVICES_IDENTITY_CREATE" 1
.SH "NAME"
.HP
gcloud alpha services identity create \- create a service identity for a consumer
.SH "SYNOPSIS"
.HP
\f5gcloud alpha services identity create\fR \fB\-\-service\fR=\fISERVICE\fR [\fB\-\-folder\fR=\fIFOLDER\fR\ |\ \fB\-\-organization\fR=\fIORGANIZATION\fR\ |\ \fB\-\-project\fR=\fIPROJECT_ID\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR This command creates a service identity for a consumer. The
supported consumers are projects, folders, and organizations.
.SH "EXAMPLES"
To create a service identity for a project, run:
.RS 2m
$ gcloud alpha services identity create \e
\-\-service=example.googleapis.com \-\-project=helloworld
.RE
Using a project number:
.RS 2m
$ gcloud alpha services identity create \e
\-\-service=example.googleapis.com \-\-project=1234567890
.RE
To create a service identity for a folder, run:
.RS 2m
$ gcloud alpha services identity create \e
\-\-service=example.googleapis.com \-\-folder=1234567890
.RE
To create a service identity for an organization, run:
.RS 2m
$ gcloud alpha services identity create \e
\-\-service=example.googleapis.com \-\-organization=1234567890
.RE
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-service\fR=\fISERVICE\fR
The service to create a service identity for.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
Container resource where the service identity will be used.
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-folder\fR=\fIFOLDER\fR
Folder where the service identity will be used.
.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR
Organization where the service identity will be used.
.TP 2m
\fB\-\-project\fR=\fIPROJECT_ID\fR
Project where the service identity will be used.
The Google Cloud project ID to use for this invocation. If omitted, then the
current project is assumed; the current project can be listed using \f5gcloud
config list \-\-format='text(core.project)'\fR and can be set using \f5gcloud
config set project PROJECTID\fR.
\f5\-\-project\fR and its fallback \f5core/project\fR property play two roles in
the invocation. It specifies the project of the resource to operate on. It also
specifies the project for API enablement check, quota, and billing. To specify a
different project for quota and billing, use \f5\-\-billing\-project\fR or
\f5billing/quota_project\fR property.
.RE
.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"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. This variant is also available:
.RS 2m
$ gcloud beta services identity create
.RE