Protect-RubrikFileset

SYNOPSIS

Connects to Rubrik and assigns an SLA to a fileset

SYNTAX

SLA_Name

Protect-RubrikFileset -id <String> -SLA <String> [-SLAPrimaryClusterId <String>] [-Server <String>]
 [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

SLA_Unprotected

Protect-RubrikFileset -id <String> [-DoNotProtect] [-ExistingSnapshotRetention <String>] [-Server <String>]
 [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

SLA_ByID

Protect-RubrikFileset -id <String> -SLAID <String> [-Server <String>] [-api <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Protect-RubrikFileset cmdlet will update a fileset's SLA Domain assignment within the Rubrik cluster. The SLA Domain contains all policy-driven values needed to protect data. Note that this function requires the fileset ID value, not the name of the fileset, since fileset names are not unique across clusters. It is suggested that you first use Get-RubrikFileset to narrow down the one or more filesets to protect, and then pipe the results to Protect-RubrikFileset. You will be asked to confirm each fileset you wish to protect, or you can use -Confirm:$False to skip confirmation checks.

EXAMPLES

EXAMPLE 1

This will assign the Gold SLA Domain to any fileset named "C_Drive"

EXAMPLE 2

This will assign the Gold SLA Domain to the fileset named "C_Drive" residing on the host named "Server1" without asking for confirmation

EXAMPLE 3

This will assign the Gold SLA Domain to the fileset named "C_Drive" residing on the host named "Server1" on the cluster id specified in SLAPrimaryClusterId

EXAMPLE 4

This will set the C_Drive fileset to not protected and subsequently expire existing snapshots

PARAMETERS

-id

Fileset ID

-SLA

The SLA Domain in Rubrik

-SLAPrimaryClusterId

The PrimaryClusterId of SLA Domain on Rubrik, defaults to local

-DoNotProtect

Removes the SLA Domain assignment

-SLAID

SLA id value

-ExistingSnapshotRetention

Determine the retention settings for the already existing snapshots

-Server

Rubrik server IP or FQDN

-api

API version

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

-Confirm

Prompts you for confirmation before running the cmdlet.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Written by Chris Wahl for community usage Twitter: @ChrisWahl GitHub: chriswahl

https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/protect-rubrikfileset

Last updated

Was this helpful?