Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Storage Rule → Get Rules

AI-generated

Summary

Retrieve the current security rules of a specified Cloud Storage bucket within a Firebase project.

Inputs

  • Project Name or ID (required) — Select the Firebase project by name or ID to target the Cloud Storage bucket from.
  • Bucket Name or ID — Optionally select the Cloud Storage bucket name or ID; leave blank to use the default bucket associated with the project.
  • Release Name Override — Optionally override the auto-derived release name used to identify the rules release; default is 'firebase.storage/{bucketName}'.

Output shape

a JSON object containing the current storage security rules configuration for the specified bucket

The returned rules represent the active security configuration for the chosen bucket within the specified Firebase project. If no bucket is specified, the default bucket's rules are retrieved. Errors returned if the project or bucket is invalid or inaccessible.

Links

Discussion