Method: projects.getAdminSdkConfig

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

string

The resource name of the FirebaseProject, in the format:

projects/PROJECT_IDENTIFIER/adminSdkConfig

Refer to the FirebaseProject name field for details about PROJECT_IDENTIFIER values.

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
projectId

string

Immutable. A user-assigned unique identifier for the FirebaseProject. This identifier may appear in URLs or names for some Firebase resources associated with the Project, but it should generally be treated as a convenience alias to reference the Project.

databaseURL

string

The default Firebase Realtime Database URL.

storageBucket

string

The default Cloud Storage for Firebase storage bucket name.

locationId

string

The ID of the Project's default GCP resource location. The location is one of the available GCP resource locations.

This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call defaultLocation.finalize after you add Firebase resources to the Project.

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.