Method: projects.defaultBucket.create Stay organized with collections Save and categorize content based on your preferences.
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 thepay-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 usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where the default bucket will be created, Authorization requires the followingIAM permission on the specified resource
|
Request body
The request body contains an instance ofDefaultBucket.
Response body
If successful, the response body contains a newly created instance ofDefaultBucket.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/firebase
For more information, see theAuthentication Overview.
IAM Permissions
Requires the followingIAM permission on theparent resource:
firebasestorage.defaultBucket.create
For more information, see theIAM documentation.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.