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

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

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

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

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

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

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

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

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

EXAMPLE 9

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

EXAMPLE 10

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

EXAMPLE 11

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

EXAMPLE 12

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

PARAMETERS

-id

SLA id value from the Rubrik Cluster

-Name

SLA Domain Name

-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 advanced configuration is enabled. 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 advanced configuration is enabled. 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 advanced configuration is enabled. 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 advanced configuration is enabled. 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 advanced configuration is enabled. 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 advanced configuration is enabled. 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 advanced configuration is enabled. 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 advanced configuration is enabled. 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

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

-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

-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 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

Was this helpful?