It's sometimes possible to restore a deleted service account using the undelete command.
To undelete a service account, the caller must be granted the iam.serviceAccounts.undelete permission on the deleted service account. This permission is included in the Owner (roles/owner) primitive role.
The deleted service account's unique ID must be provided when using the undelete command.
Use the serviceAccounts.undelete()
You would get 200 response code with details about the restored service account, on successful recovery of the account.
Hope this helped!!
To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.
You will be unable to restore a ...READ MORE
Yes, it is possible to rename your ...READ MORE
Yes, you can do it. Follow the ...READ MORE
To create a custom role, a caller ...READ MORE
When modifying a custom role by adding ...READ MORE
When a role is deleted, its bindings ...READ MORE
To create a service account, at minimum ...READ MORE
You can create an instance from an ...READ MORE
Yes, migrating an instance from Azure to ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.