As I understand, there is support for multiple clusters under single XMS starting 4.0.
The REST API calls to get all list of ssds or volumes does not take a cluster-name/id. Does it mean for a multiple cluster environment all the volumes/ssds belonging to all the clusters would be returned.
e.g What would the "GET /api/json/v2/types/volumes" API call return in case of multiple cluster environment. Also how do we identify which volume is from which cluster if its returns all volumes from different clusters.
Thanks for pointing this out. We will update the RestAPI documentation to add another parameter specifying the cluster name.
In the meantime, you can add ?cluster-name=name-of-the-cluster to the API call and it will list the volumes or SSDs from that particular cluster. Let us know if you have any further questions.
Thanks Avi. Does this mean that such an API is supported but just that the document needs to be updated. Also does it apply to all APIs e.g initiators, initiator-groups, targets etc. i.e all cases where the details for a particular object accepts a cluster-name.
Correct. This is only a documentation update that I am working on.
And yes, the same logic should work for other entities like initiators, initiator groups, targets, etc. I just checked it on array in our lab and it works
I see that you have mentioned that cluster name is required for multi cluster environemnt. Does that mean if I execute the below request/s they would fail:
For https://XMS_IP_Address/api/json/v2/types/initiators if you do not specify cluster-name as part of GET initiators, it would return a list of all the initiators for all the clusters managed by that single XMS you are querying. For any POST/PUT/DELETE API calls, you would have to specify the cluster as part of the API call if an XMS is managing multiple clusters
For https://XMS_IP_Address/api/json/v2/types/initiators/initiator_ID you would have to specify the cluster in a multi cluster environment as initiator IDs are only unique within the single cluster itself, meaning they are repeated among different clusters managed by the same XMS. So to answer your second question, it will fail and return back “cluster_id_is_required” because as I mentioned before, you would have to specify the cluster in a multi cluster environment as initiator IDs are only unique to the cluster itself, and not the XMS.
You don't need to specify the name of the cluster if you are running XtremIO 3.x, since you can have only XtremIO cluster being managed by an XMS in that release.
Kumar_A
2 Intern
•
727 Posts
3732
1
Posted October 14th, 2015 13:00
Thanks for pointing this out. We will update the RestAPI documentation to add another parameter specifying the cluster name.
In the meantime, you can add ?cluster-name=name-of-the-cluster to the API call and it will list the volumes or SSDs from that particular cluster. Let us know if you have any further questions.