Method: projects.roles.undelete

Undelete a Role, bringing it back in its previous state.

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



The resource name of the role in one of the following formats: organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

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

  • iam.roles.undelete

Request body

The request body contains data with the following structure:

JSON representation
  "etag": string

string (bytes format)

Used to perform a consistent read-modify-write.

A base64-encoded string.

Response body

If successful, the response body contains an instance of Role.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Identity and Access Management