NAME

gcloud iam service-accounts undelete - undelete a service account for a project

SYNOPSIS

gcloud iam service-accounts undelete ACCOUNT_ID [GCLOUD_WIDE_FLAG ...]

DESCRIPTION

Undelete a service account for a project.

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

EXAMPLES

The following command undeletes a service account with unique id 103271949540120710052:

$ gcloud iam service-accounts undelete 103271949540120710052

POSITIONAL ARGUMENTS

ACCOUNT_ID

The deleted service account's unique ID must be provided when using the undelete command. 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 the iam/v1 API. The full documentation for this API can be found at: https://cloud.google.com/iam/

NOTES

These variants are also available:

$ gcloud alpha iam service-accounts undelete

$ gcloud beta iam service-accounts undelete