Method: projects.serviceAccounts.undelete

Restores a deleted ServiceAccount. This is to be used as an action of last resort. A service account may not always be restorable.

HTTP request

POST https://iam.googleapis.com/v1/{name=projects/*/serviceAccounts/*}:undelete

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}'. Using-as a wildcard for thePROJECT_ID` will infer the project from the account.

Authorization requires the following Google IAM permission on the specified resource name:

  • iam.serviceAccounts.undelete

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "restoredAccount": {
    object(ServiceAccount)
  }
}
Fields
restoredAccount

object(ServiceAccount)

Metadata for the restored service account.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/iam
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Cloud Identity and Access Management