Firebase Admin icon

Firebase Admin

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

Firestore Rule → Get Rules

AI-generated

Summary

Retrieve the current Firestore security rules for a specified Firebase project and database.

Inputs

  • Project Name or ID — Select the Firebase project by name or ID, or specify an expression to identify it.
  • Database Name or ID — Select the Firestore database by name or ID from the chosen project, defaulting to the default database.
  • Release Name Override — Optionally override the release name used to fetch the rules; leave blank to use the default naming derived from the database.

Output shape

An object containing the Firestore security rules details, including the rules content and metadata.

The response includes the rules for the specified database and project. If the release name override is set, it uses that to retrieve the rules. Errors will occur if the parameters do not match existing resources or if the override is invalid.

Links

Discussion