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
Copy file name to clipboardExpand all lines: src/StorageGRID-Webscale.psm1
+50-3Lines changed: 50 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11654,24 +11654,42 @@ function Global:Get-SgwAccountGroups {
11654
11654
11655
11655
## health ##
11656
11656
11657
-
# complete as of API 2.1
11657
+
# complete as of API 2.2
11658
11658
11659
11659
<#
11660
11660
.SYNOPSIS
11661
11661
Retrieve StorageGRID Health Status
11662
11662
.DESCRIPTION
11663
11663
Retrieve StorageGRID Health Status
11664
+
.PARAMETER Server
11665
+
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
11666
+
.PARAMETER ProfileName
11667
+
StorageGRID Profile to use for connection.
11664
11668
#>
11665
11669
function Global:Get-SgwHealth {
11666
11670
[CmdletBinding()]
11667
11671
11668
11672
PARAM (
11669
11673
[parameter(Mandatory = $False,
11670
11674
Position = 0,
11671
-
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server
11675
+
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
11676
+
[parameter(Mandatory = $False,
11677
+
Position = 1,
11678
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName
11672
11679
)
11673
11680
11674
11681
Begin {
11682
+
if (!$ProfileName -and !$Server -and !$CurrentSgwServer.Name) {
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
11728
+
.PARAMETER ProfileName
11729
+
StorageGRID Profile to use for connection.
11730
+
.PARAMETER Depth
11731
+
Topology depth level to provide (default=node).
11707
11732
#>
11708
11733
function Global:Get-SgwTopologyHealth {
11709
11734
[CmdletBinding()]
@@ -11712,12 +11737,26 @@ function Global:Get-SgwTopologyHealth {
11712
11737
[parameter(Mandatory = $False,
11713
11738
Position = 0,
11714
11739
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
11740
+
[parameter(Mandatory = $False,
11741
+
Position = 1,
11742
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName,
11715
11743
[parameter(Mandatory = $False,
11716
11744
Position = 0,
11717
11745
HelpMessage = "Topology depth level to provide (default=node).")][String][ValidateSet("grid", "site", "node", "component", "subcomponent")]$Depth = "node"
11718
11746
)
11719
11747
11720
11748
Begin {
11749
+
if (!$ProfileName -and !$Server -and !$CurrentSgwServer.Name) {
0 commit comments