Stay organized with collections
Save and categorize content based on your preferences.
Adds Firebase resources and enables Firebase services in the specified existing Google Cloud Project.
Since a FirebaseProject is actually also a Google Cloud Project, a FirebaseProject has the same underlying Google Cloud identifiers (projectNumber and projectId). This allows for easy interop with Google APIs.
The result of this call is an Operation. Poll the Operation to track the provisioning process by calling operations.get until done is true. When done is true, the Operation has either succeeded or failed. If the Operation succeeded, its response is set to a FirebaseProject; if the Operation failed, its error is set to a google.rpc.Status. The Operation is automatically deleted after completion, so there is no need to call operations.delete.
This method does not modify any billing account information on the underlying Google Cloud Project.
To call projects.addFirebase, a project member or service account must have the following permissions (the IAM roles of Editor and Owner contain these permissions): firebase.projects.update, resourcemanager.projects.get, serviceusage.services.enable, and serviceusage.services.get.
HTTP request
POST https://firebase.googleapis.com/v1beta1/{project=projects/*}:addFirebase
The resource name of the Google Cloud Project in which Firebase resources will be added and Firebase services enabled, in the format:
projects/PROJECT_IDENTIFIER
Refer to the FirebaseProjectname field for details about PROJECT_IDENTIFIER values.
After calling projects.addFirebase, the unique Project identifiers ( projectNumber and projectId) of the underlying Google Cloud Project are also the identifiers of the FirebaseProject.
Request body
The request body contains data with the following structure:
JSON representation
{"locationId": string}
Fields
locationId
string
DEPRECATED.Instead, use product-specific REST APIs to work with the location of each resource in a Project. This field may be ignored, especially for newly provisioned projects after October 30, 2024.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-01 UTC."],[],[],null,["# Method: projects.addFirebase\n\nAdds Firebase resources and enables Firebase services in the specified existing [Google Cloud `Project`](https://cloud.google.com/resource-manager/reference/rest/v1/projects).\n\nSince a [FirebaseProject](/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject) is actually also a Google Cloud `Project`, a `FirebaseProject` has the same underlying Google Cloud identifiers (`projectNumber` and `projectId`). This allows for easy interop with Google APIs.\n\nThe result of this call is an [`Operation`](../../v1beta1/operations). Poll the `Operation` to track the provisioning process by calling `operations.get` until [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When `done` is `true`, the `Operation` has either succeeded or failed. If the `Operation` succeeded, its [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to a [FirebaseProject](/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject); if the `Operation` failed, its [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a [google.rpc.Status](/docs/reference/firebase-management/rest/v1beta1/operations#Status). The `Operation` is automatically deleted after completion, so there is no need to call `operations.delete`.\n\nThis method does not modify any billing account information on the underlying Google Cloud `Project`.\n\nTo call `projects.addFirebase`, a project member or service account must have the following permissions (the IAM roles of Editor and Owner contain these permissions): `firebase.projects.update`, `resourcemanager.projects.get`, `serviceusage.services.enable`, and `serviceusage.services.get`.\n\n### HTTP request\n\n`POST https://firebase.googleapis.com/v1beta1/{project=projects/*}:addFirebase`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | `string` The resource name of the Google Cloud `Project` in which Firebase resources will be added and Firebase services enabled, in the format: `projects/`\u003cvar translate=\"no\"\u003ePROJECT_IDENTIFIER\u003c/var\u003e Refer to the `FirebaseProject` [`name`](../projects#FirebaseProject.FIELDS.name) field for details about \u003cvar translate=\"no\"\u003ePROJECT_IDENTIFIER\u003c/var\u003e values. After calling `projects.addFirebase`, the unique Project identifiers ( [`projectNumber`](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project.FIELDS.project_number) and [`projectId`](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project.FIELDS.project_id)) of the underlying Google Cloud `Project` are also the identifiers of the [FirebaseProject](/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject). |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------|\n| ``` { \"locationId\": string } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `location``Id` | `string` **DEPRECATED.** *Instead, use product-specific REST APIs to work with the location of each resource in a Project. This field may be ignored, especially for newly provisioned projects after October 30, 2024.* The ID of the Project's [\"location for default Google Cloud resources\"](https://firebase.google.com/docs/projects/locations#default-cloud-location), which are resources associated with Google App Engine. The location must be one of the available [Google App Engine locations](https://cloud.google.com/about/locations#region). |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/docs/reference/firebase-management/rest/v1beta1/operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/firebase`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]