The /cluster vs /clusters api target

Badge +9
  • Trailblazer
  • 30 replies
Why is there a /cluster and and /clusters target? The singular one implies a unique target whereas the plural returns data for all clusters.

What is the difference between the two?
Does /cluster refer to the master CVM?

4 replies

Badge +4
The difference between the 2 is functional. The /cluster endpoint is used for getting/setting configuration for a specific cluster. The /clusters endpoint is more focused on providing the operational state across your environment (alerts/events)

Badge +9
When you say there is a GET /cluster, you are implying that there is a unique cluster that is correlated to the API. What is that cluster?What is its unique position in the hierarchy of clusters?

It's clear that that same cluster is listed in the /clusters GET target.
Badge +9
Also: Under what circumstances will there be multiple clusters in a Nutanix system?
What does such a system look like in terms of shared storage, memory, cpu?
Userlevel 7
Badge +30
Hey Circling back on this @pcari - There would be multiple clusters in a system if you're talking to Prism Central, which we previously didn't publish the API for. As of Today (and AOS 5.6) we do, so you'll see this become very broad with the v3 APIs in PC