CONTAP-124859: Incorrect responses from GET /api/snapmirror/relationships/ calls
Issue
The GET /api/snapmirror/relationships/ REST API call is returning an incorrect state and unhealthy_reason error compared to the CLI:Cluster1::> snapmirror show -destination-path d_*: -fields state,status,healthy,unhealthy-reason,last-transfer-error source-path destination-path state status healthy last-transfer-error unhealthy-reason
------------- ---------------- ------------ ------ ------- ------------------- ----------------svm1: svm1_DR: Snapmirrored Idle true - - curl -X GET "https://Cluster1.com/api/snapmirror/...ships?fields=*" -H "accept: application/json" -H "Authorization: Basic ..."
: "transfer": {"state": "transferring", "bytes_transferred": 7114775203, "uuid": "48dcfa7a-8ec0-11ee-9ab6-xxxxxxxxxxxx" },
"healthy": true,"unhealthy_reason": [ { "code": "32833683", "message": "Transfer for volume \"vol1\" failed. Reason: Failed to create Snapshot copy vserverdr.2.18f883c5-36dd-11ea-99b6-00a098a788f5.2023-11-29_150500 on volume svm1:vol1. (Volume d84d65fc-292b-11e9-9af4-xxxxxxxxxxxx:vol1 does not have Snapshot copy vserverdr.2.18f883c5-36dd-11ea-99b6-00a098a788f5.2023-11-29_150500.).", "arguments": [ "vol1"
]}