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
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2597,7 +2597,13 @@ function Global:Get-SgwCompliance {
2597
2597
}
2598
2598
2599
2599
Process {
2600
-
$Uri=$Server.BaseURI+"/grid/compliance-global"
2600
+
if ($Server.AccountId) {
2601
+
$Uri=$Server.BaseURI+"/org/compliance-global"
2602
+
}
2603
+
else {
2604
+
$Uri=$Server.BaseURI+"/grid/compliance-global"
2605
+
}
2606
+
2601
2607
$Method="GET"
2602
2608
2603
2609
try {
@@ -2652,6 +2658,9 @@ function Global:Enable-SgwCompliance {
2652
2658
if (!$Server) {
2653
2659
Throw"No StorageGRID Webscale Management Server management server found. Please run Connect-SgwServer to continue."
2654
2660
}
2661
+
if ($Server.AccountId) {
2662
+
Throw"Operation not supported when connected as tenant. Use Connect-SgwServer without the AccountId parameter to connect as grid administrator and then rerun this command."
0 commit comments