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 the PROJECT_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.

このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...