跳转到主内容

使用 VserverDrProtection 参数调用 REST API 失败

i
Knowledge Base guidance

This article may include metadata, visibility, validation state, and related support guidance.

适用于

  • ONTAP 9
  • REST API 

问题描述

  • 使用 PowerShell 命令修改卷 VserverDrProtection 时,REST API 调用失败:

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

  • 这篇文章对您有帮助吗?