New-RubrikSLA
SYNOPSIS
Creates a new Rubrik SLA Domain
SYNTAX
New-RubrikSLA [-Name] <String> [[-HourlyFrequency] <Int32>] [[-HourlyRetention] <Int32>]
[[-HourlyRetentionType] <String>] [[-DailyFrequency] <Int32>] [[-DailyRetention] <Int32>]
[[-DailyRetentionType] <String>] [[-WeeklyFrequency] <Int32>] [[-WeeklyRetention] <Int32>]
[[-DayOfWeek] <String>] [[-MonthlyFrequency] <Int32>] [[-MonthlyRetention] <Int32>] [[-DayOfMonth] <String>]
[[-MonthlyRetentionType] <String>] [[-QuarterlyFrequency] <Int32>] [[-QuarterlyRetention] <Int32>]
[[-DayOfQuarter] <String>] [[-FirstQuarterStartMonth] <String>] [[-QuarterlyRetentionType] <String>]
[[-YearlyFrequency] <Int32>] [[-YearlyRetention] <Int32>] [[-DayOfYear] <String>] [[-YearStartMonth] <String>]
[-AdvancedConfig] [[-BackupStartHour] <Int32>] [[-BackupStartMinute] <Int32>]
[[-BackupWindowDuration] <Int32>] [[-FirstFullBackupStartHour] <Int32>]
[[-FirstFullBackupStartMinute] <Int32>] [[-FirstFullBackupDay] <String>]
[[-FirstFullBackupWindowDuration] <Int32>] [-Archival] [[-LocalRetention] <Int32>]
[[-ArchivalLocationId] <String>] [[-PolarisID] <String>] [-InstantArchive] [-RetentionLock] [-Replication]
[[-ReplicationTargetId] <String>] [[-RemoteRetention] <Int32>] [[-Frequencies] <Object[]>]
[[-AdvancedFreq] <Object[]>] [[-BackupWindows] <Object[]>] [[-FirstFullBackupWindows] <Object[]>]
[[-ArchivalSpecs] <Object[]>] [[-ReplicationSpecs] <Object[]>] [[-Server] <String>] [[-api] <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]DESCRIPTION
The New-RubrikSLA cmdlet will build a new SLA Domain to provide policy-driven control over protected objects within the Rubrik fabric.
EXAMPLES
EXAMPLE 1
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days. Using the -SLA parameter alias
EXAMPLE 2
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days while also keeping one backup per day for 30 days.
EXAMPLE 3
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days while also keeping one backup per day for 30 days and sets the SLA to Retention Locked.
EXAMPLE 4
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days while also keeping one backup per day for 30 days, one backup per week for 4 weeks and one backup per year for 3 years. The weekly backups will be created on Fridays and the yearly backups will be created on January 31 because the year is set to start in February. The advanced SLA configuration can only be used with CDM version 5.0 and above.
EXAMPLE 5
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days. Backups are allowed to run between 22:00 and 6:00AM.
EXAMPLE 6
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days. The first full backup is allowed to be taken between Friday 21:30 and Monday 6:30AM.
EXAMPLE 7
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days, while also keeping one backup per day for 30 days. At the same time, data is immediately copied to the specified archival location and will be kept there for 14 days.
EXAMPLE 8
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days, while also keeping one backup per day for 30 days. At the same time, data is replicated to the specified target cluster and will be kept there for 5 days.
EXAMPLE 9
This will create a copy of an existing SLA named SLA1 and store it as CopySLA1
PARAMETERS
-Name
SLA Domain Name, either the -Name parameter or its parameter alias -SLA can be used to specify the name of the SLA
-HourlyFrequency
Hourly frequency to take snapshots
-HourlyRetention
Number of days or weeks to retain the hourly snapshots. For CDM versions prior to 5.0 this value must be set in days
-HourlyRetentionType
Retention type to apply to hourly snapshots when $AdvancedConfig is used. Does not apply to CDM versions prior to 5.0
-DailyFrequency
Daily frequency to take snapshots
-DailyRetention
Number of days or weeks to retain the daily snapshots. For CDM versions prior to 5.0 this value must be set in days
-DailyRetentionType
Retention type to apply to daily snapshots when $AdvancedConfig is used. Does not apply to CDM versions prior to 5.0
-WeeklyFrequency
Weekly frequency to take snapshots
-WeeklyRetention
Number of weeks to retain the weekly snapshots
-DayOfWeek
Day of week for the weekly snapshots when $AdvancedConfig is used. The default is Saturday. Does not apply to CDM versions prior to 5.0
-MonthlyFrequency
Monthly frequency to take snapshots
-MonthlyRetention
Number of months, quarters or years to retain the monthly backups. For CDM versions prior to 5.0, this value must be set in years
-DayOfMonth
Day of month for the monthly snapshots when $AdvancedConfig is used. The default is the last day of the month. Does not apply to CDM versions prior to 5.0
-MonthlyRetentionType
Retention type to apply to monthly snapshots. Does not apply to CDM versions prior to 5.0
-QuarterlyFrequency
Quarterly frequency to take snapshots. Does not apply to CDM versions prior to 5.0
-QuarterlyRetention
Number of quarters or years to retain the monthly snapshots. Does not apply to CDM versions prior to 5.0
-DayOfQuarter
Day of quarter for the quarterly snapshots when $AdvancedConfig is used. The default is the last day of the quarter. Does not apply to CDM versions prior to 5.0
-FirstQuarterStartMonth
Month that starts the first quarter of the year for the quarterly snapshots when $AdvancedConfig is used. The default is January. Does not apply to CDM versions prior to 5.0
-QuarterlyRetentionType
Retention type to apply to quarterly snapshots. The default is Quarterly. Does not apply to CDM versions prior to 5.0
-YearlyFrequency
Yearly frequency to take snapshots
-YearlyRetention
Number of years to retain the yearly snapshots
-DayOfYear
Day of year for the yearly snapshots when $AdvancedConfig is used. The default is the last day of the year. Does not apply to CDM versions prior to 5.0
-YearStartMonth
Month that starts the first quarter of the year for the quarterly snapshots when $AdvancedConfig is used. The default is January. Does not apply to CDM versions prior to 5.0
-AdvancedConfig
Whether to turn advanced SLA configuration on or off. Does not apply to CDM versions prior to 5.0
-BackupStartHour
-BackupStartMinute
Minute of hour from which backups are allowed to run
-BackupWindowDuration
Number of hours during which backups are allowed to run
-FirstFullBackupStartHour
Hour from which the first full backup is allowed to run. Uses the 24-hour clock
-FirstFullBackupStartMinute
Minute of hour from which the first full backup is allowed to run
-FirstFullBackupDay
-FirstFullBackupWindowDuration
Number of hours during which the first full backup is allowed to run
-Archival
Whether to enable archival, does not take any input and should be used in combination with -ArchivalLocationId
-LocalRetention
Time in days to keep backup data locally on the cluster.
-ArchivalLocationId
ID of the archival location
-PolarisID
Polaris Managed ID
-InstantArchive
Whether to enable Instant Archive
-RetentionLock
Whether a retention lock is active on this SLA, Does not apply to CDM versions prior to 5.2
-Replication
Whether to enable replication
-ReplicationTargetId
ID of the replication target
-RemoteRetention
Time in days to keep data on the replication target.
-Frequencies
Retrieves frequencies from Get-RubrikSLA via the pipeline
-AdvancedFreq
Retrieves the advanced UI configuration parameters from Get-RubrikSLA via the pipeline
-BackupWindows
Retrieves the allowed backup windows from Get-RubrikSLA via the pipeline
-FirstFullBackupWindows
Retrieves the allowed backup windows for the first full backup from Get-RubrikSLA via the pipeline
-ArchivalSpecs
Retrieves the archical specifications from Get-RubrikSLA via the pipeline
-ReplicationSpecs
Retrieves the replication specifications from Get-RubrikSLA via the pipeline
-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
https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/new-rubriksla
Last updated
Was this helpful?