VserverDrProtectionパラメータを使用したREST API呼び出しが失敗する
環境
- ONTAP 9
- REST API
問題
- PowerShellコマンドを使用してボリューム
VserverDrProtection
を変更しようとすると、REST API callが失敗します。
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
- エラー:
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