I am working on script to use xtremio rest api and get information we need. I want same set of scripts to work against both 3.0 and 4.0. How to I determine what is the version of xtremio management server ? Based on that, I am planning to decide whether to use v2 rest api or without v2.
You can find the software version running on the cluster using the 'sys-sw-version’ parameter in the response for ‘’GET /api/json/types/clusters/.”
If the software version is (or greater than) 4.0.0, you need to use v2 RestAPI calls, if the software version is anything earlier than 4.0.0, you need to use v1 RestAPI calls. Does this logic work?
We are using rest api and I do not see this command as part of 3.0 REST API.
However with cluster details I see :
sys-sw-version XIOS version The Xtremapp software version currently running on the Storage Controllers
Is this same as XMS version and can we used to determine whether we need to use REST v2 calls (for 4.0) ?
See my response above. You can use the API call ‘’GET /api/json/types/clusters/” to get the software version running on the array and then decide which version of RestAPI call to use.