---
title: Firebase Rules Ruleset
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Firebase Rules Ruleset
---

# Firebase Rules Ruleset

A Firebase Rules Ruleset in Google Cloud Platform defines the access control and validation logic for Firebase services such as Firestore, Storage, and Realtime Database. It contains rule definitions that determine who can read, write, or update data and under what conditions. Each ruleset version can be deployed and managed independently to ensure secure and consistent data access policies.

```
gcp.firebaserules_ruleset
```

## Fields

| Title                | ID   | Type          | Data Type                                                                                                                                                                                                            | Description |
| -------------------- | ---- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                 | core | string        |
| ancestors            | core | array<string> |
| attachment_point     | core | 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//databases/ |
| create_time          | core | timestamp     | Output only. Time the `Ruleset` was created.                                                                                                                                                                         |
| datadog_display_name | core | string        |
| gcp_source           | core | json          | Required. `Source` for the `Ruleset`.                                                                                                                                                                                |
| labels               | core | array<string> |
| metadata             | core | json          | Output only. The metadata for this ruleset.                                                                                                                                                                          |
| name                 | core | string        | Output only. Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}`                                                                           |
| organization_id      | core | string        |
| parent               | core | string        |
| project_id           | core | string        |
| project_number       | core | string        |
| region_id            | core | string        |
| resource_name        | core | string        |
| tags                 | core | hstore_csv    |
| zone_id              | core | string        |
