- NAME
-
- gcloud beta services identity create - create a service identity for a consumer
- SYNOPSIS
-
-
gcloud beta services identity create--service=SERVICE[--folder=FOLDER|--organization=ORGANIZATION|--project=PROJECT_ID] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)This command creates a service identity for a consumer. The supported consumers are projects, folders, and organizations. - EXAMPLES
-
To create a service identity for a project, run:
gcloud beta services identity create --service=example.googleapis.com --project=helloworldUsing a project number:
gcloud beta services identity create --service=example.googleapis.com --project=1234567890To create a service identity for a folder, run:
gcloud beta services identity create --service=example.googleapis.com --folder=1234567890To create a service identity for an organization, run:
gcloud beta services identity create --service=example.googleapis.com --organization=1234567890 - REQUIRED FLAGS
-
--service=SERVICE- The service to create a service identity for.
- OPTIONAL FLAGS
-
-
Container resource where the service identity will be used.
At most one of these can be specified:
--folder=FOLDER- Folder where the service identity will be used.
--organization=ORGANIZATION- Organization where the service identity will be used.
--project=PROJECT_ID-
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
gcloud config list --format='text(core.project)'and can be set usinggcloud config set project PROJECTID.--projectand its fallbackcore/projectproperty 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--billing-projectorbilling/quota_projectproperty.
-
Container resource where the service identity will be used.
- 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 helpfor details. - NOTES
-
This command is currently in beta and might change without notice. This variant
is also available:
gcloud alpha services identity create
gcloud beta services identity create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-24 UTC.