Firebase Admin icon

Firebase Admin

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

Storage Rule → List Rulesets

AI-generated

Summary

Retrieve a list of storage rulesets for a specified Firebase project and Cloud Storage bucket, limited by an optional page size.

Inputs

  • Project Name or ID (required) — Select the Firebase project by name or ID whose storage rulesets you want to list.
  • Bucket Name or ID — Specify the Cloud Storage bucket name or ID. Leave blank to use the project's default bucket.
  • Page Size — Set the maximum number of rulesets to return, ranging from 1 to 100. Defaults to 10 if not specified.

Output shape

a list of storage ruleset objects

The output contains an array of storage rulesets available for the specified bucket and project, constrained by the page size parameter. Pagination or continuation tokens are not indicated in the operation inputs or description.

Examples

Example 1: List up to 20 storage rulesets for the default bucket of a Firebase project

Set the Project Name or ID to the desired project and Page Size to 20; leave Bucket Name or ID blank.

Links

Discussion