'How to get list of datastore using cluster name in vcenter rest?

I've cluster name with me and I want to list out all datastore and available for that clusters using Vcenter rest API! Please tell me how can I do so?

I'm referring VM Ware website for this but am not able to find the solution.

Thank you in advance for the help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source