- This topic has 0 replies, 1 voice, and was last updated August 24, 2021 by Suvarna W.
API Error: Setting Validation Failed
The forum ‘Scripting and APIs’ is closed to new topics and replies.
Hi,
I am trying to update vcd failover network nic settings and i am getting the below error:
ErrorDetails : {“Message”:”Exception occurred in API: Setting validation
failed: The following properties are irrelevant when
replicating from vSphere to vCD. Remove these
accordingly:\nName: JournalDatastore; Location: ProtectionGroupM
anagementSettings.VMsManagementSettings.0.VMSettings; “}
I am getting this error when sending it to PUT command
################################
#Building VMNIC JSON
################################
$VMNICJSON=
“{
“”Failover””:{
“”VCD””:{
“”RecoveryOrgVdcNetworkIdentifier””:””$VMNICFailoverNetworkIdentifier””
}
},
“”FailoverTest””:{
“”VCD””:{
“”RecoveryOrgVdcNetworkIdentifier””:””$VMNICTestFailoverNetworkIdentifier””
}
},
“”NICIdentifier””:””$VMNICIdentifier””
}”
##############################
#Creating URL and sending PUT command to API
##############################
$EditVMNICURL = $BaseURL+”vpgSettings/”+$VPGSettingsIdentifier+”/vms/”+$VMIdentifier+”/nics/$($VMNICIdentifier)”
$EditVMNICURL
try{
$EditVMNIC = Invoke-RestMethod -Method Put -Uri $EditVMNICURL -Body $VMNICJSON -Headers $zertoSessionHeader -ContentType $TypeJSON -TimeoutSec 100
Write-Host “Test”
}
catch{
Write-Host $_.Exception.ToString()
$error[0] | Format-List -Force
}
The forum ‘Scripting and APIs’ is closed to new topics and replies.