- NAME
-
- gcloud alpha iam service-accounts create - create a service account for a project
- SYNOPSIS
-
-
gcloud alpha iam service-accounts create
NAME
[--description
=DESCRIPTION
] [--display-name
=DISPLAY_NAME
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
This command creates a service account with the provided name. For subsequent commands regarding service accounts, this service account should be referred to by the email account in the response. - EXAMPLES
-
To create a service account for your project, run:
gcloud alpha iam service-accounts create some-account-name --display-name="My Service Account"
To work with this service account in subsequent IAM commands, use the email resulting from this call as the IAM_ACCOUNT argument.
- POSITIONAL ARGUMENTS
-
NAME
- The internal name of the new service account. Used to generate an IAM_ACCOUNT (an IAM internal email address used as an identifier of service account), which must be passed to subsequent commands.
- FLAGS
-
--description
=DESCRIPTION
- A textual description for the account.
--display-name
=DISPLAY_NAME
- A textual name to display for the account.
- 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 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. These variants are also available:
gcloud iam service-accounts create
gcloud beta iam service-accounts 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 2024-10-01 UTC.