Method: projects.locations.instances.undelete

恢复之前标记为删除的DatabaseInstance 。使用delete方法后,DatabaseInstances将被设置为DELETED状态20天,并将在30天内被清除。处于DELETED状态的数据库可以取消删除,而不会丢失任何数据。此方法只能用于处于DELETED状态的 DatabaseInstance。清除的数据库实例可能无法恢复。

HTTP请求

POST https://firebasedatabase.googleapis.com/v1beta/{name=projects/*/locations/*/instances/*}:undelete

URL 使用gRPC 转码语法。

路径参数

参数
name

string

数据库实例的完全限定资源名称,格式为: projects/{project-number}/locations/{location-id}/instances/{database-id}

授权需要对指定资源name具有以下IAM权限:

  • firebasedatabase.instances.undelete

请求正文

请求正文必须为空。

响应体

如果成功,响应正文将包含DatabaseInstance的实例。

授权范围

需要以下 OAuth 范围之一:

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

有关详细信息,请参阅身份验证概述