You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Filter results to include only relic (removed) volume groups
11
+
[Alias('is_relic')]
12
+
[Switch]$Relic,
13
+
# SLA Domain policy assigned to the volume group
14
+
[String]$SLA,
15
+
# Filter the summary information based on the primarycluster_id of the primary Rubrik cluster. Use local as the primary_cluster_id of the Rubrik cluster that is hosting the current REST API session.
# DetailedObject will retrieved the detailed VolumeGroup object, the default behavior of the API is to only retrieve a subset of the full VolumeGroup object unless we query directly by ID. Using this parameter does affect performance as more data will be retrieved and more API-queries will be performed.
25
+
[Switch]$DetailedObject,
26
+
# Rubrik server IP or FQDN
27
+
[String]$Server=$global:RubrikConnection.server,
28
+
# API version
29
+
[String]$api=$global:RubrikConnection.api
30
+
)
31
+
32
+
$query=New-RscQuery-GqlQuery physicalHosts
33
+
$query.Var.hostRoot="WINDOWS_HOST_ROOT"
34
+
$query.Var.sortBy="NAME"
35
+
$query.Var.sortOrder="ASC"
36
+
$query.Var
37
+
$filter=New-Object System.Collections.ArrayList
38
+
39
+
40
+
#TODO -=MWP=- figure out how to get volume group info into query
# 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
33
+
[int]$MonthlyRetention,
34
+
# 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
35
+
[ValidateSet('FirstDay','Fifteenth','LastDay')]
36
+
[String]$DayOfMonth='LastDay',
37
+
# Retention type to apply to monthly snapshots. Does not apply to CDM versions prior to 5.0
38
+
[ValidateSet('Monthly','Quarterly','Yearly')]
39
+
[String]$MonthlyRetentionType='Monthly',
40
+
# Quarterly frequency to take snapshots. Does not apply to CDM versions prior to 5.0
41
+
[int]$QuarterlyFrequency,
42
+
# Number of quarters or years to retain the monthly snapshots. Does not apply to CDM versions prior to 5.0
43
+
[int]$QuarterlyRetention,
44
+
# 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
45
+
[ValidateSet('FirstDay','LastDay')]
46
+
[String]$DayOfQuarter='LastDay',
47
+
# 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
# Retention type to apply to quarterly snapshots. The default is Quarterly. Does not apply to CDM versions prior to 5.0
51
+
[ValidateSet('Quarterly','Yearly')]
52
+
[String]$QuarterlyRetentionType='Quarterly',
53
+
# Yearly frequency to take snapshots
54
+
[int]$YearlyFrequency,
55
+
# Number of years to retain the yearly snapshots
56
+
[int]$YearlyRetention,
57
+
# 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
58
+
[ValidateSet('FirstDay','LastDay')]
59
+
[String]$DayOfYear='LastDay',
60
+
# 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
0 commit comments