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
+34-5Lines changed: 34 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12754,24 +12754,42 @@ function Global:Get-SgwMetricQuery {
12754
12754
12755
12755
## ntp-servers ##
12756
12756
12757
-
# complete as of API 2.1
12757
+
# complete as of API 2.2
12758
12758
12759
12759
<#
12760
12760
.SYNOPSIS
12761
12761
Lists configured external NTP servers
12762
12762
.DESCRIPTION
12763
12763
Lists configured external NTP servers
12764
+
.PARAMETER Server
12765
+
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
12766
+
.PARAMETER ProfileName
12767
+
StorageGRID Profile to use for connection.
12764
12768
#>
12765
12769
function Global:Get-SgwNtpServers {
12766
12770
[CmdletBinding()]
12767
12771
12768
12772
PARAM (
12769
12773
[parameter(Mandatory = $False,
12770
12774
Position = 0,
12771
-
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server
12775
+
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
12776
+
[parameter(Mandatory = $False,
12777
+
Position = 1,
12778
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName
12772
12779
)
12773
12780
12774
12781
Begin {
12782
+
if (!$ProfileName -and !$Server -and !$CurrentSgwServer.Name) {
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
0 commit comments