Assign a Fileset to a Linux or Windows machine. If you have multiple Filesets with identical names, you will need to populate the Filesets properties (i.e this functions keyword arguments) to find a specific match. Filesets with identical names and properties are not supported.
def assign_physical_host_fileset(hostname, fileset_name, operating_system, sla_name, include=None, exclude=None, exclude_exception=None, follow_network_shares=False, backup_hidden_folders=False, timeout=30)
The hostname or IP Address of the physical host you wish to associate to the Fileset.
The name of the Fileset you wish to assign to the Linux or Windows host.
The operating system of the physical host you are assigning a Fileset to.
The name of the SLA Domain to associate with the Fileset.
The full paths or wildcards that define the objects to include in the Fileset backup (ex: ['/usr/local', '*.pdf']).
The full paths or wildcards that define the objects to exclude from the Fileset backup (ex: ['/user/local/temp', '.mov', '.mp3']).
The full paths or wildcards that define the objects that are exempt from the
Include or exclude locally-mounted remote file systems from backups.
Include or exclude hidden folders inside locally-mounted remote file systems from backups.
The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error.
No change required. The
When a new Fileset is created the following tuple will be returned: (Full API response from
When the Fileset already exsits but is assigned to the wrong the SLA the Full API response from
import rubrik_cdmrubrik = rubrik_cdm.Connect()hostname = "python-sdk-demo"fileset_name = "Python SDK"operating_system = 'Linux'sla = 'Gold'assign_fileset = rubrik.assign_physical_host_fileset(hostname, fileset_name, operating_system, sla)