Skip to content

Commit 8333792

Browse files
committed
updated help file
New-PfaRestOperation examples
1 parent beadbc8 commit 8333792

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

PureStorage.FlashArray.VMware.Configuration/PureStorage.FlashArray.VMware.Configuration.psm1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,21 @@ function New-PfaRestOperation {
14611461
.OUTPUTS
14621462
Returns FA REST response.
14631463
.EXAMPLE
1464-
1464+
PS C:\ $fa = New-PfaArray -endpoint flasharray-m20-2 -credentials (get-credential)
1465+
PS C:\ $volName = "newVolume"
1466+
PS C:\ New-PfaRestOperation -resourceType "volume/$($volName)" -restOperationType POST -flasharray $fa -jsonBody "{`"size`":`"1010010108)`"}" -SkipCertificateCheck
1467+
1468+
Creates a volume named newVolume and skips cert checking.
1469+
.EXAMPLE
1470+
PS C:\ $fa = New-PfaArray -endpoint flasharray-m20-2 -credentials (get-credential)
1471+
PS C:\ New-PfaRestOperation -resourceType "volume" -restOperationType GET -flasharray $fa
1472+
1473+
Returns all volumes on target array
1474+
.EXAMPLE
1475+
PS C:\ $fa = New-PfaArray -endpoint flasharray-m20-2 -credentials (get-credential)
1476+
PS C:\ New-PfaRestOperation -resourceType volume -restOperationType GET -flasharray $fa -queryFilter "?filter=serial=`'7B5ECBDC924142CC0009CB39`'"
1477+
1478+
Returns the volume with the specified serial number.
14651479
.NOTES
14661480
Version: 2.0
14671481
Author: Cody Hosterman https://codyhosterman.com

0 commit comments

Comments
 (0)