Перейти к консоли

Method: projects.webApps.getConfig

Gets the configuration artifact associated with the specified WebApp.

HTTP request

GET https://firebase.googleapis.com/v1beta1/{name=projects/*/webApps/*/config}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource name of the App configuration to download, in the format:

projects/projectId/webApps/appId/config


As an appId is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format:

projects/-/webApps/appId

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Configuration metadata of a single Firebase App for the web.

JSON representation
{
  "projectId": string,
  "appId": string,
  "databaseURL": string,
  "storageBucket": string,
  "locationId": string,
  "apiKey": string,
  "authDomain": string,
  "messagingSenderId": string,
  "measurementId": string
}
Fields
projectId

string

Immutable. The globally unique, user-assigned project ID of the parent Project for the App.

appId

string

Immutable. The globally unique, Firebase-assigned identifier of the App.

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 your project's default GCP resource location, call defaultLocation.finalize after you add Firebase services to your project.

apiKey

string

The API key associated with the web App.

authDomain

string

The domain Firebase Auth configures for OAuth redirects, in the format:

projectId.firebaseapp.com

messagingSenderId

string

The sender ID for use with Firebase Cloud Messaging.

measurementId

string

The unique Google-assigned identifier of the Google Analytics web stream associated with the Firebase Web App. Firebase SDKs use this ID to interact with Google Analytics APIs.

This field is only present if the App is linked to a web stream in a Google Analytics App + Web property. Learn more about this ID and Google Analytics web streams in the Analytics documentation.

To generate a measurementId and link the Web App with a Google Analytics web stream, call projects.addGoogleAnalytics.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Try it!