Method: projects.defaultBucket.create

Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.

HTTP request

POST https://firebasestorage.googleapis.com/v1alpha/{parent=projects/*}/defaultBucket

The URL uses gRPC 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 following IAM permission on the specified resource parent:

  • firebasestorage.defaultBucket.create

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.