Google Firebase · Schema

Ruleset

`Ruleset` is an immutable copy of `Source` with a globally unique identifier and a creation time.

AnalyticsAuthenticationBackend-as-a-ServiceCloud MessagingGoogle CloudHostingMobileReal-Time DatabaseIdentity Federation

Properties

Name Type Description
metadata object Output only. The metadata for this ruleset.
attachmentPoint string Immutable. Intended resource to which this Ruleset should be released. May be left blank to signify the resource associated with the default release. Expected format: firestore.googleapis.com/projects
createTime string Output only. Time the `Ruleset` was created.
source object Required. `Source` for the `Ruleset`.
name string Output only. Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}`
View JSON Schema on GitHub

JSON Schema

google-firebase-ruleset-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-firebase/json-schema/google-firebase-ruleset-schema.json",
  "title": "Ruleset",
  "description": "`Ruleset` is an immutable copy of `Source` with a globally unique identifier and a creation time.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-firebase-firebaserules-projects-api-openapi.yml#/components/schemas/Ruleset",
  "properties": {
    "metadata": {
      "$ref": "#/$defs/Metadata",
      "description": "Output only. The metadata for this ruleset."
    },
    "attachmentPoint": {
      "description": "Immutable. Intended resource to which this Ruleset should be released. May be left blank to signify the resource associated with the default release. Expected format: firestore.googleapis.com/projects//databases/",
      "type": "string"
    },
    "createTime": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. Time the `Ruleset` was created.",
      "format": "google-datetime"
    },
    "source": {
      "$ref": "#/$defs/Source",
      "description": "Required. `Source` for the `Ruleset`."
    },
    "name": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}`"
    }
  },
  "type": "object",
  "$defs": {
    "File": {
      "properties": {
        "fingerprint": {
          "format": "byte",
          "type": "string",
          "description": "Fingerprint (e.g. github sha) associated with the `File`."
        },
        "name": {
          "description": "Required. File name.",
          "type": "string"
        },
        "content": {
          "description": "Required. Textual Content.",
          "type": "string"
        }
      },
      "description": "`File` containing source content.",
      "type": "object"
    },
    "Metadata": {
      "properties": {
        "services": {
          "items": {
            "type": "string"
          },
          "description": "Services that this ruleset has declarations for (e.g., \"cloud.firestore\"). There may be 0+ of these.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "Metadata for a Ruleset."
    },
    "Source": {
      "description": "`Source` is one or more `File` messages comprising a logical set of rules.",
      "type": "object",
      "properties": {
        "files": {
          "description": "Required. `File` set constituting the `Source` bundle.",
          "items": {
            "$ref": "#/$defs/File"
          },
          "type": "array"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-firebase-ruleset"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.