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
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
15366
+
.PARAMETER ProfileName
15367
+
StorageGRID Profile to use for connection.
15368
+
.PARAMETER AccountId
15369
+
ID of a StorageGRID Webscale Account to get S3 Access Keys for.
15370
+
.PARAMETER UserId
15371
+
ID of a StorageGRID Webscale User.
15364
15372
#>
15365
15373
function Global:Get-SgwS3AccessKeys {
15366
15374
[CmdletBinding(DefaultParameterSetName = "none")]
@@ -15369,22 +15377,36 @@ function Global:Get-SgwS3AccessKeys {
15369
15377
[parameter(
15370
15378
Mandatory = $False,
15371
15379
Position = 0,
15380
+
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
15381
+
[parameter(Mandatory = $False,
15382
+
Position = 1,
15383
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName,
15384
+
[parameter(
15385
+
Mandatory = $False,
15386
+
Position = 2,
15372
15387
ParameterSetName = "account",
15373
15388
HelpMessage = "ID of a StorageGRID Webscale Account to get S3 Access Keys for.",
Retrieve a StorageGRID Webscale Account S3 Access Key
15434
15456
.DESCRIPTION
15435
15457
Retrieve a StorageGRID Webscale Account S3 Access Key
15458
+
.PARAMETER Server
15459
+
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
15460
+
.PARAMETER ProfileName
15461
+
StorageGRID Profile to use for connection.
15462
+
.PARAMETER AccountId
15463
+
ID of a StorageGRID Webscale Account to get S3 Access Keys for.
15464
+
.PARAMETER UserId
15465
+
ID of a StorageGRID Webscale User.
15466
+
.PARAMETER AccessKey
15467
+
Access Key to retrieve.
15436
15468
#>
15437
15469
function Global:Get-SgwS3AccessKey {
15438
15470
[CmdletBinding(DefaultParameterSetName = "none")]
@@ -15441,27 +15473,41 @@ function Global:Get-SgwS3AccessKey {
15441
15473
[parameter(
15442
15474
Mandatory = $False,
15443
15475
Position = 0,
15476
+
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
15477
+
[parameter(Mandatory = $False,
15478
+
Position = 1,
15479
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName,
15480
+
[parameter(
15481
+
Mandatory = $False,
15482
+
Position = 2,
15444
15483
HelpMessage = "ID of a StorageGRID Webscale Account to get S3 Access Keys for",
Create a new StorageGRID Webscale Account S3 Access Key
15512
15558
.DESCRIPTION
15513
15559
Create a new StorageGRID Webscale Account S3 Access Key
15560
+
.PARAMETER Server
15561
+
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
15562
+
.PARAMETER ProfileName
15563
+
StorageGRID Profile to use for connection.
15564
+
.PARAMETER AccountId
15565
+
ID of a StorageGRID Webscale Account to get S3 Access Keys for.
15566
+
.PARAMETER UserId
15567
+
ID of a StorageGRID Webscale User.
15568
+
.PARAMETER Expires
15569
+
Expiration date of the S3 Access Key.
15514
15570
#>
15515
15571
function Global:New-SgwS3AccessKey {
15516
15572
[CmdletBinding(DefaultParameterSetName = "none")]
@@ -15520,27 +15576,41 @@ function Global:New-SgwS3AccessKey {
15520
15576
Mandatory = $False,
15521
15577
Position = 0,
15522
15578
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
15579
+
[parameter(Mandatory = $False,
15580
+
Position = 1,
15581
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName,
15523
15582
[parameter(
15524
15583
Mandatory = $False,
15525
-
Position = 1,
15584
+
Position = 2,
15526
15585
ParameterSetName = "account",
15527
15586
ValueFromPipelineByPropertyName = $True,
15528
15587
HelpMessage = "Id of the StorageGRID Webscale Account to create new S3 Access Key for.")][String]$AccountId,
15529
15588
[parameter(
15530
15589
Mandatory = $False,
15531
-
Position = 2,
15590
+
Position = 3,
15532
15591
ParameterSetName = "user",
15533
15592
ValueFromPipelineByPropertyName = $True,
15534
15593
HelpMessage = "ID of a StorageGRID Webscale User.")][Alias("userUUID")][String]$UserId,
15535
15594
[parameter(
15536
15595
Mandatory = $False,
15537
-
Position = 3,
15596
+
Position = 4,
15538
15597
ValueFromPipeline = $True,
15539
15598
ValueFromPipelineByPropertyName = $True,
15540
15599
HelpMessage = "Expiration date of the S3 Access Key.")][DateTime]$Expires
15541
15600
)
15542
15601
15543
15602
Begin {
15603
+
if (!$ProfileName -and !$Server -and !$CurrentSgwServer.Name) {
Delete a StorageGRID Webscale Account S3 Access Key
15617
15687
.DESCRIPTION
15618
15688
Delete a StorageGRID Webscale Account S3 Access Key
15689
+
.PARAMETER Server
15690
+
StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.
15691
+
.PARAMETER ProfileName
15692
+
StorageGRID Profile to use for connection.
15693
+
.PARAMETER AccountId
15694
+
ID of a StorageGRID Webscale Account to get S3 Access Keys for.
15695
+
.PARAMETER UserId
15696
+
ID of a StorageGRID Webscale User.
15697
+
.PARAMETER AccessKey
15698
+
Access Key to delete.
15619
15699
#>
15620
15700
function Global:Remove-SgwS3AccessKey {
15621
15701
[CmdletBinding()]
@@ -15624,28 +15704,42 @@ function Global:Remove-SgwS3AccessKey {
15624
15704
[parameter(
15625
15705
Mandatory = $False,
15626
15706
Position = 0,
15707
+
HelpMessage = "StorageGRID Webscale Management Server object. If not specified, global CurrentSgwServer object will be used.")][PSCustomObject]$Server,
15708
+
[parameter(Mandatory = $False,
15709
+
Position = 1,
15710
+
HelpMessage = "StorageGRID Profile to use for connection.")][Alias("Profile")][String]$ProfileName,
15711
+
[parameter(
15712
+
Mandatory = $False,
15713
+
Position = 2,
15627
15714
HelpMessage = "Id of the StorageGRID Webscale Account to delete S3 Access Key for.",
0 commit comments