Method: projects.defaultBucket.create

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

string

Required. The parent resource where the default bucket will be created,projects/{project_id_or_number}.

Authorization requires the followingIAM permission on the specified resourceparent:

  • firebasestorage.defaultBucket.create

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-platform
  • https://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.