- This topic has 0 replies, 1 voice, and was last updated January 4, 2021 by Adam S.
API Not Returning Expected Values for VMs
The forum ‘Scripting and APIs’ is closed to new topics and replies.
I’m attempting to work with the Zerto Analytics API: https://docs.api.zerto.com/#/ When I get the list of all protected VM’s the Zorg information is not returned. I’ve verified the VM’s are in the correct zorgs and can find them under the expected Zorg in our analytics portal.
Based on the swagger documentation I would expect a JSON object that looks like the following:
{
“identifier”: “3511b4b6-460f-4aa8-9956-661c3c26a9e6.vm-11”,
“name”: “SomeVM”,
“provisionedStorageMb”: 22,
“usedStorageMb”: 11,
“vpgs”: [
{
“name”: “VPG01”,
“identifier”: “3511b4b6-460f-4aa8-9956-661c3c26a9e6”,
“status”: “MeetingSLA”,
“state”: “Error”,
“protectedSite”: {
“name”: “Boston”,
“type”: “vCenter”,
“role”: “Protected”
},
“recoverySite”: {
“name”: “Boston”,
“type”: “vCenter”,
“role”: “Protected”
}
}
],
“zorg”: {
“name”: “customer_1”,
“identifier”: “3511b4b6-460f-4aa8-9956-661c3c26a9e6”
}
}
Instead, I receive the following:
{
“identifier”: “3511b4b6-460f-4aa8-9956-661c3c26a9e6.vm-11”,
“name”: “SomeVM”,
“provisionedStorageMb”: 22,
“usedStorageMb”: 11,
“vpgs”: [
{
“name”: “VPG01”,
“identifier”: “3511b4b6-460f-4aa8-9956-661c3c26a9e6”,
“status”: “MeetingSLA”,
“state”: “Error”,
“protectedSite”: {
“name”: “Boston”,
“type”: “vCenter”,
“role”: “Protected”
},
“recoverySite”: {
“name”: “Boston”,
“type”: “vCenter”,
“role”: “Protected”
}
}
]
}
Have any of you run into this issue? Is there a trick to getting the zorg info to reply as part of the JSON object?
Thanks,
Adam
The forum ‘Scripting and APIs’ is closed to new topics and replies.