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
If the login fails, it is often due to an untrusted certificate of the StorageGRID Management Server. You can ignore the certificate check with the `-Insecure` option
Copy file name to clipboardExpand all lines: src/StorageGRID-Webscale.psm1
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,16 +27,19 @@ function global:Connect-SGWServer {
27
27
[parameter(Mandatory=$True,
28
28
Position=1,
29
29
HelpMessage="A System.Management.Automation.PSCredential object containing the credentials needed to log into the StorageGRID Webscale Management Server.")][System.Management.Automation.PSCredential]$Credential,
30
-
[parameter(Mandatory=$False,
30
+
[parameter(Mandatory=$True,
31
31
Position=2,
32
+
HelpMessage="Account ID for Tenenant Login")][System.Management.Automation.PSCredential]$AccountID,
33
+
[parameter(Mandatory=$False,
34
+
Position=3,
32
35
HelpMessage="This cmdlet always tries to establish a secure HTTPS connection to the StorageGRID Webscale Management Server, but it will fall back to HTTP if necessary. Specify -HTTP to skip the HTTPS connection attempt and only try HTTP.")][Switch]$HTTP,
33
36
[parameter(Mandatory=$False,
34
-
Position=2,
37
+
Position=4,
35
38
HelpMessage="This cmdlet always tries to establish a secure HTTPS connection to the StorageGRID Webscale Management Server, but it will fall back to HTTP if necessary. Specify -HTTPS to fail the connection attempt in that case rather than fall back to HTTP.")][Switch]$HTTPS,
36
39
[parameter(Mandatory=$False,
37
-
Position=3,
40
+
Position=5,
38
41
HelpMessage="If the StorageGRID Webscale Management Server certificate cannot be verified, the connection will fail. Specify -Insecure to ignore the validity of the StorageGRID Webscale Management Server certificate.")][Switch]$Insecure,
39
-
[parameter(Position=4,
42
+
[parameter(Position=6,
40
43
Mandatory=$False,
41
44
HelpMessage="Specify -Transient to not set the global variable `$CurrentOciServer.")][Switch]$Transient
42
45
)
@@ -60,12 +63,23 @@ function global:Connect-SGWServer {
60
63
$Server|Add-Member-MemberType NoteProperty -Name Name -Value $Name
0 commit comments