Skip to main content
NetApp Knowledge Base

REST API call fails using VserverDrProtection parameter

Views:
35
Visibility:
Internal
Votes:
0
Category:
not set
Specialty:
not set
Last Updated:
5/12/2025, 2:25:50 PM

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

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

This is an internal KB article and its content should not be copy/pasted and shared with people outside of NetApp. Always seek Duty Manager authentication of caller for password reset requests. If you need further assistance post a question in Knowledge Xchange