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
+47-7Lines changed: 47 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12257,24 +12257,42 @@ function Global:Get-SgwIlmRules {
12257
12257
12258
12258
## license ##
12259
12259
12260
-
# complete as of API 2.1
12260
+
# complete as of API 2.2
12261
12261
12262
12262
<#
12263
12263
.SYNOPSIS
12264
12264
Retrieves the grid license
12265
12265
.DESCRIPTION
12266
12266
Retrieves the grid license
12267
+
.PARAMETER Server
12268
+
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
12269
+
.PARAMETER ProfileName
12270
+
StorageGRID Profile to use for connection.
12267
12271
#>
12268
12272
function Global:Get-SgwLicense {
12269
12273
[CmdletBinding()]
12270
12274
12271
12275
PARAM (
12272
12276
[parameter(Mandatory = $False,
12273
12277
Position = 0,
12274
-
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server
12278
+
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
12279
+
[parameter(Mandatory = $False,
12280
+
Position = 1,
12281
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName
12275
12282
)
12276
12283
12277
12284
Begin {
12285
+
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