Hi
I am planning to migrate our monitoring system from API v3 to API v4. For the next 1.5 years, until API v3 is deprecated, it will be necessary to support both APIs.
Based on my understanding, API v4 is supported from AOS version 6.8 and above. Our infrastructure includes a variety of PCs with different AOS versions, some of which are new (v7.0) and others that are older (v6.5) but still in use. Consequently, we need to continue utilizing API v3 for the older versions.
To ensure seamless operation, I intend to implement backward compatibility to maintain both APIs until all PCs are updated, which is not expected to occur in the near future.
Initially, I considered checking the AOS version or the supported API versions to determine the appropriate API version to use. Is there a general API call (not specific to any version) that can retrieve the AOS version? Please note that I do not utilize the official SDK and have developed my own implementation tailored to our specific requirements.
Currently, I am using the following API calls in v3:
/api/nutanix/v3/vms/list
/api/nutanix/v3/vms/{uuid}
/api/nutanix/v3/categories/list
/api/nutanix/v3/categories/{name}/list
/api/nutanix/v3/category/query
Thanks!
Â