1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00
gcloud-help/gcloud/beta/services/identity/create

78 lines
2.7 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud beta services identity create - create a service identity for a
consumer
SYNOPSIS
gcloud beta services identity create --service=SERVICE
2023-06-22 10:31:35 +00:00
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT_ID]
2022-03-01 04:29:52 +00:00
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command creates a service identity for a consumer. The
2023-06-22 10:31:35 +00:00
supported consumers are projects, folders, and organizations.
2022-03-01 04:29:52 +00:00
EXAMPLES
2025-06-26 10:50:44 +00:00
To create a service identity for a project, run:
2022-03-01 04:29:52 +00:00
$ gcloud beta services identity create \
--service=example.googleapis.com --project=helloworld
2025-06-26 10:50:44 +00:00
Using a project number:
2023-06-22 10:31:35 +00:00
$ gcloud beta services identity create \
--service=example.googleapis.com --project=1234567890
2025-06-26 10:50:44 +00:00
To create a service identity for a folder, run:
2023-06-22 10:31:35 +00:00
$ gcloud beta services identity create \
--service=example.googleapis.com --folder=1234567890
2025-06-26 10:50:44 +00:00
To create a service identity for an organization, run:
2023-06-22 10:31:35 +00:00
$ gcloud beta services identity create \
--service=example.googleapis.com --organization=1234567890
2022-03-01 04:29:52 +00:00
REQUIRED FLAGS
--service=SERVICE
The service to create a service identity for.
2023-06-22 10:31:35 +00:00
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 using gcloud config set project PROJECTID.
--project and its fallback core/project 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 --billing-project or billing/quota_project property.
2022-03-01 04:29:52 +00:00
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.
NOTES
This command is currently in beta and might change without notice. This
variant is also available:
$ gcloud alpha services identity create