获取与指定FirebaseProject
关联的配置工件,服务器可以使用它来简化初始化。
通常,此配置与 Firebase Admin SDKinitializeApp命令一起使用。
HTTP请求
GET https://firebase.googleapis.com/v1beta1/{name=projects/*/adminSdkConfig}
URL 使用gRPC 转码语法。
路径参数
参数 | |
---|---|
name | 有关PROJECT_IDENTIFIER值的详细信息,请参阅 |
请求正文
请求正文必须为空。
响应体
如果成功,响应正文包含具有以下结构的数据:
JSON 表示 |
---|
{ "projectId": string, "databaseURL": string, "storageBucket": string, "locationId": string } |
领域 | |
---|---|
projectId | 不变的。用户为 |
databaseURL | 默认 Firebase 实时数据库 URL。 |
storageBucket | 默认 Cloud Storage for Firebase 存储桶名称。 |
locationId | 项目的默认 GCP 资源位置的 ID。该位置是可用的GCP 资源位置之一。 如果默认 GCP 资源位置尚未最终确定,则省略此字段。要设置项目的默认 GCP 资源位置,请在将 Firebase 资源添加到项目后调用 |
授权范围
需要以下 OAuth 范围之一:
-
https://www.googleapis.com/auth/cloud-platform
-
https://www.googleapis.com/auth/cloud-platform.read-only
-
https://www.googleapis.com/auth/firebase
-
https://www.googleapis.com/auth/firebase.readonly
有关详细信息,请参阅身份验证概述。