Validation failed: Expected HTTP code 200, got 400.Response body: {"error_code":"1.4.5.8","message":"Mismatched source fields in VM protection settings. ..................... }
search cancel

Validation failed: Expected HTTP code 200, got 400.Response body: {"error_code":"1.4.5.8","message":"Mismatched source fields in VM protection settings. ..................... }

book

Article ID: 377916

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

A VLR REST API call to update the protection settings of a virtual machine, returns Validation failed

REST API :
PUT https://SRM-FQDN/api/rest/srm/v2/pairings/xxxxxxxx/protection-management/groups/DrReplicationVmProtectionGroup:vm-protection-group-xxxxx:xxxxxx/vms/VirtualMachine:vm-xxx:xxxxx/protection-settings:

Validation failed: Expected HTTP code 200, got 400.Response body: {"error_code":"1.4.5.8","message":"Mismatched source fields in VM protection settings. Retrieve current VM protection settings and try to modify those.","op_id":"404ff09b-3bc9-473d-xxxx-xxxxxxx"}

Environment

Site Recovery Manager 8.x
Live Site Recovery 9.x

 

Cause

The REST API call is requesting to change the resource_pool information which is not editable.

Resolution

Ensure the scripted VLR REST API call is not attempting to make protection setting changes when editable state is 'false'.