Restores a soft-deleted bucket .
The original bucket metadata, including IAM policies, custom metadata, and tags, but excluding managed folders, is restored and the softDeleteTime 
and hardDeleteTime 
is cleared. No objects are restored. If a live bucket with the same name already exists, the bucket cannot be restored.
After the bucket is live again, the objects can be restored with the  Objects: restore 
 
or  Objects: bulkRestore 
 
APIs.
Request
HTTP request
POST https://storage.googleapis.com/storage/v1/b/ bucket /restore
In addition to standard query parameters , the following query parameters apply to this method.
To see an example of how to include query parameters in a request, see the JSON API Overview page.
Parameters
bucket 
string 
generation 
long 
projection 
string 
Set of properties to return. Defaults to full 
.
Acceptable values are:
-  full: Include all properties.
-  noAcl: Omitowner,acl, anddefaultObjectAclproperties.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a bucket resource in the response body.
For information about status and error codes returned by this API, see the reference page .
Try it!
Use the APIs Explorer below to call this method on live data and see the response.

