Protect-RubrikDatabase
SYNOPSIS
Connects to Rubrik and assigns an SLA to a database
SYNTAX
SLA_Explicit
Protect-RubrikDatabase -id <String> [-SLA <String>] [-SLAID <String>] [-Server <String>] [-api <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]SLA_Unprotected
Protect-RubrikDatabase -id <String> [-DoNotProtect] [-SLAID <String>] [-ExistingSnapshotRetention <String>]
[-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]SLA_Inherit
Protect-RubrikDatabase -id <String> [-Inherit] [-SLAID <String>] [-Server <String>] [-api <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]DESCRIPTION
The Protect-RubrikDatabase cmdlet will update a database's SLA Domain assignment within the Rubrik cluster. The SLA Domain contains all policy-driven values needed to protect workloads. Note that this function requires the Database ID value, not the name of the database, since database names are not unique across hosts. It is suggested that you first use Get-RubrikDatabase to narrow down the one or more database / instance / hosts to protect, and then pipe the results to Protect-RubrikDatabase. You will be asked to confirm each database 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 database named "DB1"
EXAMPLE 2
This will assign the Gold SLA Domain to any database named "DB1" residing on an instance named "MSSQLSERVER" without asking for confirmation
EXAMPLE 3
This will set the DB1 database as unprotected, while keeping existing snapshots forever
PARAMETERS
-id
Database ID
-SLA
The SLA Domain in Rubrik
-DoNotProtect
Removes the SLA Domain assignment
-Inherit
Inherits the SLA Domain assignment from a parent object
-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
RELATED LINKS
Last updated
Was this helpful?