- NAME
-
- gcloud beta workload-identity service-agents generate - generate service agents for a service producer
- SYNOPSIS
-
-
gcloud beta workload-identity service-agents generate--service=SERVICE(--folder=FOLDER|--organization=ORGANIZATION|--project=PROJECT) [--location=LOCATION; default="global"] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)It can be generated in a project, folder, or organization and location.gcloud beta workload-identity service-agents generategenerates service agents for a given service producer in a specific project, folder, or organization and location. - EXAMPLES
-
To generate service agents for
bigquery.googleapis.comin thegloballocation for the project123456, run:gcloud beta workload-identity service-agents generate --service="bigquery.googleapis.com" --location="global" --project="123456"To generate service agents for
bigquery.googleapis.comin thegloballocation for the folder123456, run:gcloud beta workload-identity service-agents generate --service="bigquery.googleapis.com" --location="global" --folder="123456"To generate service agents for
bigquery.googleapis.comin thegloballocation for the organization123456, run:gcloud beta workload-identity service-agents generate --service="bigquery.googleapis.com" --location="global" --organization="123456" - REQUIRED FLAGS
-
--service=SERVICE- The service producer to generate service agents for (e.g. bigquery.googleapis.com).
-
Exactly one of these must be specified:
--folder=FOLDER- The folder number to generate service agents for.
--organization=ORGANIZATION- The organization number to generate service agents for.
--project=PROJECT- The project number to generate service agents for.
- OPTIONAL FLAGS
-
--location=LOCATION; default="global"- The location for which to generate the service agents. Defaults to global.
- 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. These
variants are also available:
gcloud workload-identity service-agents generategcloud alpha workload-identity service-agents generate
gcloud beta workload-identity service-agents generate
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 2026-04-28 UTC.