zfs.resource.snapshot.count =========================== Count ZFS snapshots per dataset. This method provides a fast way to count snapshots without retrieving full snapshot information. Useful for UI displays and quota checks. Args: data: Count parameters containing: - paths: List of dataset paths to count snapshots for. If empty, counts snapshots for root filesystems only. - recursive: Include snapshots from child datasets in counts. Returns: Dict mapping dataset names to their snapshot counts. Examples: # Count snapshots for root filesystems only count({}) # Count all snapshots recursively count({"recursive": True}) # Count snapshots for a specific dataset count({"paths": ["tank/data"]}) # Count snapshots for a dataset and all children count({"paths": ["tank"], "recursive": True}) .. raw:: html
Count parameters for counting ZFS snapshots.
No Additional PropertiesDataset paths to count snapshots for. If empty, counts all snapshots.
All items must be unique
No Additional ItemsInclude snapshots from child datasets when counting.
Mapping of dataset names to their snapshot counts.
Each additional property must conform to the following schema
Type: integer