Is it possible to restore a deleted service account on Gcloud

0 votes
Can I restore a deleted service account on GCP. If yes, how can I do this?
Oct 30, 2019 in GCP by Sam
• 6,260 points
4,278 views

1 answer to this question.

0 votes

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() 

POST https://iam.googleapis.com/v1/projects/[PROJECT-ID]/serviceAccounts/[ACCOUNT-UNIQUE-ID]:undelete

You would get 200 response code with details about the restored service account, on successful recovery of the account. 

POST https://iam.googleapis.com/v1/projects/[PROJECT-ID]/serviceAccounts/[ACCOUNT-UNIQUE-ID]:undelete


Hope this helped!!

To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.

Thank you!

answered Oct 30, 2019 by Sirajul
• 59,230 points
Unable to restore deleted service account on GCP.

Related Questions In GCP

0 votes
1 answer
0 votes
0 answers

Is it possible to run android x86 on a GCP VM? [closed]

Mar 2, 2022 in GCP by Rahul
• 2,120 points
467 views
0 votes
1 answer

Is it possible to rename a project in GCP?

Yes, it is possible to rename your ...READ MORE

answered Sep 27, 2019 in GCP by Sirajul
• 59,230 points
21,406 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Updated Role isn't reflecting in my GCP project.

When modifying a custom role by adding ...READ MORE

answered Oct 30, 2019 in GCP by Sirajul
• 59,230 points
1,611 views
0 votes
1 answer
0 votes
1 answer

create a service account on Gcloud.

To create a service account, at minimum ...READ MORE

answered Oct 30, 2019 in GCP by Sirajul
• 59,230 points
712 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP