gcloud alpha iam service-accounts undelete

NAME
gcloud alpha iam service-accounts undelete - undelete a service account for a project
SYNOPSIS
gcloud alpha iam service-accounts undeleteACCOUNT_ID[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Undelete a service account for a project.

If the service account does not exist, this command returns aPERMISSION_DENIED error.

EXAMPLES
The following command undeletes a service account with unique id103271949540120710052:
gcloudalphaiamservice-accountsundelete103271949540120710052
POSITIONAL ARGUMENTS
ACCOUNT_ID
The deleted service account's unique ID must be provided when using the undeletecommand. Unique IDs are a 21 digit number, such as 103271949540120710052.
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.

API REFERENCE
This command uses theiam/v1 API. The full documentation for thisAPI can be found at:https://cloud.google.com/iam/
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudiamservice-accountsundelete
gcloudbetaiamservice-accountsundelete

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.