REST Resource: projects

Resource: FirebaseProject

A FirebaseProject is the top-level Firebase entity. It is the container for Firebase Apps, Firebase Hosting sites, storage systems (Firebase Realtime Database, Cloud Firestore, Cloud Storage buckets) and other Firebase and Google Cloud Platform (GCP) resources.

You can create a new FirebaseProject in the Firebase console, or you can add Firebase resources to an existing GCP Project by calling projects.addFirebase.

A FirebaseProject is actually also a GCP Project, so a FirebaseProject uses underlying GCP identifiers (most importantly, projectID`) as its own for easy interop with GCP APIs.

JSON representation
{
  "name": string,
  "projectId": string,
  "projectNumber": string,
  "displayName": string,
  "resources": {
    object(DefaultResources)
  }
}
Fields
name

string

The fully qualified resource name of the Project, in the format:

projects/project-id

projectId

string

Immutable. The globally unique, user-assigned ID of the Project.

projectNumber

string (int64 format)

The globally unique, Google-assigned identifier of the Project.

displayName

string

The user-assigned display name of the Project.

resources

object(DefaultResources)

The default Firebase resources associated with the Project.

DefaultResources

The default resources associated with a FirebaseProject.

JSON representation
{
  "hostingSite": string,
  "realtimeDatabaseInstance": string,
  "storageBucket": string,
  "locationId": string
}
Fields
hostingSite

string

The default Firebase Hosting site, in the format:

project-id.firebaseapp.com

realtimeDatabaseInstance

string

The default Firebase Realtime Database instance, in the format:

project-id.firebaseio.com

storageBucket

string

The default Cloud Storage for Firebase storage bucket, in the format:

project-id.appspot.com

locationId

string

The default resource location of other Firebase resources, such as Cloud Firestore.
For examples, see https://cloud.google.com/appengine/docs/locations.

Methods

addFirebase

Adds Firebase resources to the specified existing Google Cloud Platform (GCP) Project.

get

Gets the FirebaseProject identified by the specified resource name.

getAdminSdkConfig

Gets the configuration artifact used by servers to simplify initialization.

list

Lists each FirebaseProject accessible to the caller.

patch

Updates the attributes of the FirebaseProject identified by the specified resource name.

searchApps

A convenience method that lists all available Apps for the specified FirebaseProject.

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面