Set-RubrikSLA

SYNOPSIS

Updates an existing Rubrik SLA Domain

SYNTAX

Set-RubrikSLA [-id] <String> [[-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 Set-RubrikSLA cmdlet will update an existing SLA Domain with specified parameters.

EXAMPLES

EXAMPLE 1

Set-RubrikSLA -id e4d121af-5611-496a-bb8d-57ba46443e94 -Name Gold -HourlyFrequency 12 -HourlyRetention 5

This will update the SLA Domain named "Gold" to take a snapshot every 12 hours and keep those for 5 days. All other existing parameters will be reset.

EXAMPLE 2

Get-RubrikSLA -Name Gold | Set-RubrikSLA -HourlyFrequency 4 -HourlyRetention 3

This will update the SLA Domain named "Gold" to take a snapshot every 4 hours and keep those hourly snapshots for 3 days, while keeping all other existing parameters.

EXAMPLE 3

Get-RubrikSLA -Name Gold | Set RubrikSLA -AdvancedConfig -HourlyFrequency 4 -HourlyRetention 3 -WeeklyFrequency 1 -WeeklyRetention 4 -DayOfWeek Friday

This will update the SLA Domain named "Gold" to take a snapshot every 4 hours and keep those hourly snapshots for 3 days while also keeping one snapshot per week for 4 weeks, created on Fridays. All other existing parameters will remain as they were.

EXAMPLE 4

Get-RubrikSLA -Name Gold | Set-RubrikSLA -BackupStartHour 22 -BackupStartMinute 00 -BackupWindowDuration 8

This will update the SLA Domain named "Gold" to take snapshots between 22:00PM and 6:00AM, while keeping all other existing parameters.

EXAMPLE 5

Get-RubrikSLA -Name Gold | Set-RubrikSLA -FirstFullBackupStartHour 21 -FirstFullBackupStartMinute 30 -FirstFullBackupWindowDuration 57 -FirstFullBackupDay Friday

This will update the SLA Domain named "Gold" to take the first full snapshot between Friday 21:30PM and Monday 6:30AM, while keeping all other existing parameters.

EXAMPLE 6

Get-RubrikSLA -Name Gold | Set-RubrikSLA -Archival -ArchivalLocationId 64e27685-f1d9-4243-a2d4-78dbf5e8b43d -LocalRetention 30

This will update the SLA Domain named "Gold" to keep data locally for 30 days before sending it to the specified archival location.

EXAMPLE 7

Get-RubrikSLA -Name Gold | Set-RubrikSLA -InstantArchive

This will update the SLA Domain named "Gold" to enable Instant Archive, assuming that archival was already configured. Ommitting this parameter will disable Instant Archive.

EXAMPLE 8

Get-RubrikSLA -Name Gold | Set-RubrikSLA -RetentionLock

This will update the SLA Domain named "Gold" to enable Retention Lock

EXAMPLE 9

Get-RubrikSLA -Name Gold | Set-RubrikSLA -Replication -ReplicationTargetId eeece05e-980f-4d32-953e-d236b65ff6fd -RemoteRetention 7

This will update the SLA Domain named "Gold" to replicate snapshots to the specified cluster and keep them for 7 days remotely.

EXAMPLE 10

Get-RubrikSLA -Name Gold | Set-RubrikSLA -AdvancedConfig

This will update the SLA Domain named "Gold" to only enable Advanced Configuration

EXAMPLE 11

Get-RubrikSLA -Name Gold | Set-RubrikSLA -Archival:$false

This will update the SLA Domain named "Gold" to only disable archival

EXAMPLE 12

Get-RubrikSLA -Name Gold | Set-RubrikSLA -Replication:$false

This will update the SLA Domain named "Gold" to only disable replication

PARAMETERS

-id

SLA id value from the Rubrik Cluster

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Name

SLA Domain Name

Type: String
Parameter Sets: (All)
Aliases: SLA

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-HourlyFrequency

Hourly frequency to take snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-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

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-HourlyRetentionType

Retention type to apply to hourly snapshots when advanced configuration is enabled. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: Daily
Accept pipeline input: False
Accept wildcard characters: False

-DailyFrequency

Daily frequency to take snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-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

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-DailyRetentionType

Retention type to apply to daily snapshots when advanced configuration is enabled. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 8
Default value: Daily
Accept pipeline input: False
Accept wildcard characters: False

-WeeklyFrequency

Weekly frequency to take snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 9
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-WeeklyRetention

Number of weeks to retain the weekly snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 10
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-DayOfWeek

Day of week for the weekly snapshots when advanced configuration is enabled. The default is Saturday. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 11
Default value: Saturday
Accept pipeline input: False
Accept wildcard characters: False

-MonthlyFrequency

Monthly frequency to take snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 12
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-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

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 13
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-DayOfMonth

Day of month for the monthly snapshots when advanced configuration is enabled. The default is the last day of the month. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 14
Default value: LastDay
Accept pipeline input: False
Accept wildcard characters: False

-MonthlyRetentionType

Retention type to apply to monthly snapshots. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 15
Default value: Monthly
Accept pipeline input: False
Accept wildcard characters: False

-QuarterlyFrequency

Quarterly frequency to take snapshots. Does not apply to CDM versions prior to 5.0

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 16
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-QuarterlyRetention

Number of quarters or years to retain the monthly snapshots. Does not apply to CDM versions prior to 5.0

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 17
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-DayOfQuarter

Day of quarter for the quarterly snapshots when advanced configuration is enabled. The default is the last day of the quarter. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 18
Default value: LastDay
Accept pipeline input: False
Accept wildcard characters: False

-FirstQuarterStartMonth

Month that starts the first quarter of the year for the quarterly snapshots when advanced configuration is enabled. The default is January. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 19
Default value: January
Accept pipeline input: False
Accept wildcard characters: False

-QuarterlyRetentionType

Retention type to apply to quarterly snapshots. The default is Quarterly. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 20
Default value: Quarterly
Accept pipeline input: False
Accept wildcard characters: False

-YearlyFrequency

Yearly frequency to take snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 21
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-YearlyRetention

Number of years to retain the yearly snapshots

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 22
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-DayOfYear

Day of year for the yearly snapshots when advanced configuration is enabled. The default is the last day of the year. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 23
Default value: LastDay
Accept pipeline input: False
Accept wildcard characters: False

-YearStartMonth

Month that starts the first quarter of the year for the quarterly snapshots when advanced configuration is enabled. The default is January. Does not apply to CDM versions prior to 5.0

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 24
Default value: January
Accept pipeline input: False
Accept wildcard characters: False

-AdvancedConfig

Whether to turn advanced SLA configuration on or off. Does not apply to CDM versions prior to 5.0

Type: SwitchParameter
Parameter Sets: (All)
Aliases: showAdvancedUi

Required: False
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-BackupStartHour

Hour from which backups are allowed to run. Uses the 24-hour clock

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 25
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-BackupStartMinute

Minute of hour from which backups are allowed to run

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 26
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-BackupWindowDuration

Number of hours during which backups are allowed to run

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 27
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-FirstFullBackupStartHour

Hour from which the first full backup is allowed to run. Uses the 24-hour clock

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 28
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-FirstFullBackupStartMinute

Minute of hour from which the first full backup is allowed to run

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 29
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-FirstFullBackupDay

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 30
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FirstFullBackupWindowDuration

Number of hours during which the first full backup is allowed to run

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 31
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Archival

Whether to enable archival

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-LocalRetention

Time in days to keep backup data locally on the cluster.

Type: Int32
Parameter Sets: (All)
Aliases: localRetentionLimit

Required: False
Position: 32
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ArchivalLocationId

ID of the archival location

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 33
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PolarisID

Polaris Managed ID

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 34
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InstantArchive

Whether to enable Instant Archive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-RetentionLock

Whether a retention lock is active on this SLA, Does not apply to CDM versions prior to 5.2

Type: SwitchParameter
Parameter Sets: (All)
Aliases: isRetentionLocked

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Replication

Whether to enable replication

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ReplicationTargetId

ID of the replication target

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 35
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RemoteRetention

Time in days to keep data on the replication target.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 36
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Frequencies

Retrieves frequencies from Get-RubrikSLA via the pipeline

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 37
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-AdvancedFreq

Retrieves the advanced UI configuration parameters from Get-RubrikSLA via the pipeline

Type: Object[]
Parameter Sets: (All)
Aliases: advancedUiConfig

Required: False
Position: 38
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-BackupWindows

Retrieves the allowed backup windows from Get-RubrikSLA via the pipeline

Type: Object[]
Parameter Sets: (All)
Aliases: allowedBackupWindows

Required: False
Position: 39
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-FirstFullBackupWindows

Retrieves the allowed backup windows for the first full backup from Get-RubrikSLA via the pipeline

Type: Object[]
Parameter Sets: (All)
Aliases: firstFullAllowedBackupWindows

Required: False
Position: 40
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ArchivalSpecs

Retrieves the archical specifications from Get-RubrikSLA via the pipeline

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 41
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ReplicationSpecs

Retrieves the replication specifications from Get-RubrikSLA via the pipeline

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 42
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Server

Rubrik server IP or FQDN

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 43
Default value: $global:RubrikConnection.server
Accept pipeline input: False
Accept wildcard characters: False

-api

API version

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 44
Default value: $global:RubrikConnection.api
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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 Pierre-Fran §ois Guglielmi for community usage Twitter: @pfguglielmi GitHub: pfguglielmi

https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/set-rubriksla

Last updated