Method: projects.buckets.addFirebase

Links a Google Cloud Storage bucket to a Firebase project.

HTTP request

POST https://firebasestorage.googleapis.com/v1beta/{bucket=projects/*/buckets/*}:addFirebase

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
bucket

string

Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, projects/{project_number}/buckets/{bucket_id}.

Authorization requires the following IAM permission on the specified resource bucket:

  • firebasestorage.buckets.addFirebase

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Bucket.

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 bucket resource:

  • firebasestorage.buckets.addFirebase

For more information, see the IAM documentation.