Skip to main content

In Nutanix Prism Central, Is there any top-level REST API that lists all supported API versions? like v2, 43, v4.0 etc.?

In platforms like Pure Storage, etc., there's a REST API endpoint (e.g., GET /api/api_version) that returns a list of all supported API versions. It is useful for automation by dynamically retrieving supported REST API versions.

Is there any such REST API endpoint in Nutanix?

+1

I believe this is necessary because API v3 will soon be deprecated. During the transition period, systems will need to support both API v3 and API v4, creating overlapping windows. To ensure forward and backward compatibility, this approach is required.

 

but for your question:

You could use the API to extract the AOS version.

Alternatively, you could try using the latest API version first, and if it fails, revert to a lower version. However, none of these options are ideal.