REST API call fails using VserverDrProtection parameter
Applies to
- ONTAP 9
- REST API
Issue
- REST API call fails when attempting to modify the volume
VserverDrProtection
using a PowerShell command:
PS C:\Windows\system32> $newVolume = New-NcVol -Name $volumeName -VserverContext $vServerName -Aggregate $aggregateName -Size $volumeSize -State $state -Type $type -ExportPolicy $exportPolicy -SnapshotPolicy $snapshotPolicy -SecurityStyle $securityStyle -SpaceReserve $spaceReserve -JunctionPath $junctionPath -Comment $comment -AntiRansomwareState $antiRansomwareState -VserverDrProtection $vServerDrProtection
- Error:
New-NcVol : VserverDrProtection parameter specified, which is not supported for REST call
At line:1 char:15
+ ... ewVolume = New-NcVol -Name $volumeName -VserverContext $vServerName ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-NcVol], ArgumentException
+ FullyQualifiedErrorId : VserverDrProtection parameter specified, which is not supported for REST call,DataONTAP.C.PowerShell.SDK.Cmdlets.Vo
lume.NewNcVol