- This topic has 1 voice and 0 replies.
5.0 update 3 API Changes
You must be logged in to create new topics.
Click here to login
If any customers have been running our Zerto scripts which we provide as examples (whitepapers) on versions 5.0 update 2 and below then please have a read of the below:
As per our release notes in 5.0 update 3 there was a change in the API which gives Zerto better security. I have seen numerous requests from people stating that their scripts no longer work. Fortunately the fix is very simple and it is all down to the “accept headers” and the content type with the scripts.
Some Basic facts:
the cause for the script failure:
When XML content type is returned there is another level of naming, the top level, for example retrieving a VPG list of all the VPGs in a site will yield the attached responses. (see XML.PNG)
As you can see in the JSON (see JSON.PNG) format there in no name for the top level object (ArrayOfVpgApi) where the XML response there is, now in pre-5.0U3 versions, requests with content type “application/xml” or “text/xml” would yield a xml response, while in 5.0U3 the request Content type is ignored and only request “Accept” header will determine the response format.
So in future of existing scripts please ensure your accept header is set to the correct content.
Thanks,
Darren Swift
Principal System Engineer
darren@zerto.com