Creates the default Cloud Storage bucket and links it to the specified Firebase project.
If the default bucket already exists, this method will re-link it to the Firebase project.
Starting October 30, 2024, using this method requires that the Firebase project is on the pay-as-you-go Blaze pricing plan, and the resulting default bucket name will be in the format {PROJECT_ID}.firebasestorage.app
.
HTTP request
POST https://firebasestorage.googleapis.com/v1alpha/{parent=projects/*}/defaultBucket
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource where the default bucket will be created, Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains an instance of DefaultBucket
.
Response body
If successful, the response body contains a newly created instance of DefaultBucket
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/firebase
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
firebasestorage.defaultBucket.create
For more information, see the IAM documentation.