Stay organized with collections
Save and categorize content based on your preferences.
DECOMMISSIONED.If called, this endpoint will return a 404 error.Instead, use the applicable resource-specific REST API to set the location for each resource used in your Project.
After the location for default Google Cloud resources is finalized, or if it was already set, it cannot be changed. The location for default Google Cloud resources for the specified FirebaseProject might already be set because either the underlying Google Cloud Project already has an App Engine application or defaultLocation.finalize was previously called with a specified locationId.
The result of this call is an Operation, which can be used to track the provisioning process. The response type of the Operation is google.protobuf.Empty.
The Operation can be polled by its name using operations.get until done is true. When done is true, the Operation has either succeeded or failed. If the Operation has succeeded, its response will be set to a google.protobuf.Empty; if the Operation has failed, its error will be set to a google.rpc.Status. The Operation is automatically deleted after completion, so there is no need to call operations.delete.
All fields listed in the request body are required.
To call defaultLocation.finalize, a member must be an Owner of the Project.
HTTP request
POST https://firebase.googleapis.com/v1beta1/{parent=projects/*}/defaultLocation:finalize
[[["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.defaultLocation.finalize\n\n| This item is deprecated!\n**DECOMMISSIONED.** **If called, this endpoint will return a 404 error.** *Instead, use the applicable resource-specific REST API to set the location for each resource used in your Project.*\n\nSets the [\"location for default Google Cloud resources\"](https://firebase.google.com/docs/projects/locations#default-cloud-location) for the specified [FirebaseProject](/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject).\n\nThis method creates a Google App Engine application with a [default Cloud Storage bucket](https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setting-up-cloud-storage#activating_a_cloud_storage_bucket), located in the specified [`locationId`](#body.request_body.FIELDS.location_id). This location must be one of the available [App Engine locations](https://cloud.google.com/about/locations#region).\n\nAfter the location for default Google Cloud resources is finalized, or if it was already set, it cannot be changed. The location for default Google Cloud resources for the specified `FirebaseProject` might already be set because either the underlying Google Cloud `Project` already has an App Engine application or `defaultLocation.finalize` was previously called with a specified `locationId`.\n\nThe result of this call is an [`Operation`](../../v1beta1/operations), which can be used to track the provisioning process. The [`response`](../../v1beta1/operations#Operation.FIELDS.response) type of the `Operation` is [google.protobuf.Empty](https://protobuf.dev/reference/protobuf/google.protobuf/#empty).\n\nThe `Operation` can be polled by its `name` using `operations.get` until `done` is true. When `done` is true, the `Operation` has either succeeded or failed. If the `Operation` has succeeded, its [`response`](../../v1beta1/operations#Operation.FIELDS.response) will be set to a [google.protobuf.Empty](https://protobuf.dev/reference/protobuf/google.protobuf/#empty); if the `Operation` has failed, its `error` will be 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\nAll fields listed in the [request body](#request-body) are required.\n\nTo call `defaultLocation.finalize`, a member must be an Owner of the Project.\n\n### HTTP request\n\n`POST https://firebase.googleapis.com/v1beta1/{parent=projects/*}/defaultLocation:finalize`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` The resource name of the [FirebaseProject](/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject) for which the [\"location for default Google Cloud resources\"](https://firebase.google.com/docs/projects/locations#default-cloud-location) will be set, 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. |\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** 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/)."]]