Look here for content specific to using the vSAN Management API for Operations an Automation
Typically, vSAN management is performed through the Web Client. Tasks can include those such as initial configuration, ongoing maintenance, and reporting of capacity, performance, or heath of vSAN.
Sample ‘Recipes’ are provided, to detail the process of how one would go about putting vSAN Management API for Python scripts together.
These samples are not supported by VMware.