Skip to main content

default_location

Creates, updates, deletes, gets or lists a default_location resource.

Overview

Namedefault_location
TypeResource
Idfirebase.firebase.default_location

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
finalizeexecprojectsIdDECOMMISSIONED. 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. Sets the "location for default Google Cloud resources" for the specified FirebaseProject. This method creates a Google App Engine application with a default Cloud Storage bucket, located in the specified locationId. This location must be one of the available App Engine locations. 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 FinalizeDefaultLocation 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 GetOperation 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 DeleteOperation. All fields listed in the request body are required. To call FinalizeDefaultLocation, a member must be an Owner of the Project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectsIdstring

Lifecycle Methods

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. Sets the "location for default Google Cloud resources" for the specified FirebaseProject. This method creates a Google App Engine application with a default Cloud Storage bucket, located in the specified locationId. This location must be one of the available App Engine locations. 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 FinalizeDefaultLocation 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 GetOperation 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 DeleteOperation. All fields listed in the request body are required. To call FinalizeDefaultLocation, a member must be an Owner of the Project.

EXEC firebase.firebase.default_location.finalize 
@projectsId='{{ projectsId }}' --required
@@json=
'{
"locationId": "{{ locationId }}"
}';