Gets the configuration artifact associated with the specified FirebaseProject
, which can be used by servers to simplify initialization.
Typically, this configuration is used with the Firebase Admin SDK initializeApp command.
HTTP request
GET https://firebase.googleapis.com/v1beta1/{name=projects/*/adminSdkConfig}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
The resource name of the
Refer to the |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "projectId": string, "databaseURL": string, "storageBucket": string, "locationId": string } |
Fields | |
---|---|
project |
Immutable. A user-assigned unique identifier for the |
databaseURL |
DEPRECATED. Instead, find the URL of the default Realtime Database instance using the list endpoint within the Firebase Realtime Database REST API. If the default instance for the Project has not yet been provisioned, the return might not contain a default instance. The URL of the default Firebase Realtime Database instance. |
storageBucket |
DEPRECATED. Instead, find the name of the default Cloud Storage for Firebase bucket using the list endpoint within the Cloud Storage for Firebase REST API. If the default bucket for the Project has not yet been provisioned, the return might not contain a default bucket. The name of the default Cloud Storage for Firebase bucket. |
locationId |
DEPRECATED. Instead, use product-specific REST APIs to find the location of each resource in a Project. This field may not be populated, especially for newly provisioned projects after October 30, 2024. The ID of the Project's "location for default Google Cloud resources", which are resources associated with Google App Engine. The location is one of the available App Engine locations. This field is omitted if the location for default Google Cloud resources has not been set. |
Authorization scopes
Requires one of the following OAuth scopes:
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
For more information, see the Authentication Overview.