zfs.resource.snapshot.rename ============================ Rename a ZFS snapshot. Args: data: Rename parameters containing: - current_name: Current snapshot path (e.g., 'pool/dataset@old_name'). - new_name: New snapshot path (e.g., 'pool/dataset@new_name'). - recursive: Recursively rename matching snapshots in child datasets. Returns: None on success. Raises: ValidationError: If snapshot not found, new name already exists, or invalid paths. Examples: # Rename a single snapshot rename({"current_name": "tank/data@old", "new_name": "tank/data@new"}) # Rename recursively (all matching child snapshots) rename({ "current_name": "tank@old", "new_name": "tank@new", "recursive": True }) .. raw:: html
Rename parameters for renaming ZFS snapshots.
No Additional PropertiesCurrent snapshot path (e.g., 'pool/dataset@old_name').
Must be at least 1 characters long
New snapshot path (e.g., 'pool/dataset@new_name').
Must be at least 1 characters long
Recursively rename matching snapshots in child datasets.