# vSAN Management

The VMware vSAN API Reference documentation provides information about the methods and data structures available through the vSAN API. Note that the vSAN APIs are an extension of the regular vSphere APIs, and as such this API reference includes all types of the vSphere API for reference as well.

- Managed objects
- Data objects
- Properties
- Methods
- Enumerations
- Faults

The vSAN API is exposed as a Web service, running on both the VMware vCenter server systems as well as the VMware ESXi systems. The API provides access to the methods that you can use to manage vSAN.

## vSAN API overview

The vSAN API centers around a small set of Managed Objects, which allow to set up and configure all aspects of vSAN, as well as query runtime state.

- VsanVcDiskManagementSystem – vSAN disks related configuration and query APIs, operating at a vSAN Cluster level in vCenter Server only
- VsanVcStretchedClusterSystem – vSAN Stretched Cluster related configuration and query APIs, operating at a vSAN Cluster level in vCenter Server only
- VsanVcClusterConfigSystem – vSAN cluster configuration setting and query APIs, operating at a vSAN Cluster level in vCenter Server only
- VsanVcClusterHealthSystem – vSAN Health related configuration and query APIs, operating at a vSAN Cluster level in vCenter Server only
- VsanPerformanceManager – vSAN Performance related configuration and query APIs, operating at both vCenter Server and ESXi host sides
- HostVsanHealthSystem – vSAN Health related configuration and query APIs, operating at a single ESXi host level
- VsanUpgradeSystemEx – vSAN upgrade and disk format conversion related APIs, operating at a vSAN Cluster level in vCenter Server only. This MO extends the APIs of VsanUpgradeSystem
- VsanSpaceReportSystem – vSAN cluster space usage related query APIs, operating at a vSAN Cluster level in vCenter Server side only
- VsanObjectSystem – the vSAN object related status query and storage policy setting APIs, operating at both vCenter Server and ESXi host sides
- HostVsanSystem – vSAN Health related configuration and query APIs, operating at a single ESXi host level
- VsanUpgradeSystem – Used to perform and monitor vSAN on-disk format upgrades, operating at a vSAN Cluster level in vCenter Server only
- VsanIscsiTargetSystem – vSAN iSCSI target service related configuration and management APIs, operating at both vCenter Server and ESXi hosts
- VsanVcsaDeployerSystem – Virtual Center Service Appliance deployment APIs onto vSAN datastore, operating at both vCenter Server and ESXi host sides
- VsanSystemEx – vSAN system extended management APIs, operating at a single ESXi Host level
- VsanVdsSystem – vSAN system optimized VDS related operations, especially migrations from VSS to VDS
- VsanUpdateManager – VIB installation engine operating at vSAN cluster level (optimized for vSAN clusters)
- VsanCapabilitySystem – APIs to query vSAN capability, available on both vCenter and ESXi
- VsanMassCollector – vSAN system management query API's to access data and managed object properties, operating at a vSAN Cluster level in vCenter Server only
- VsanPhoneHomeSystem – vSAN online health related query API, operating at a vSAN Cluster level in vCenter Server only
- VsanVumSystem – vSAN VUM integration related API, operating at a vSAN Cluster level in vCenter Server only
- VsanResourceCheckSystem – vSAN resource check related API, operating at both vCenter Server and ESXi host sides
- CnsVolumeManager – vSAN Cloud Native Storage service related API, operating at a vSAN Cluster level in vCenter Server only
- VsanFileServiceSystem – vSAN file service related API, operating at a vSAN Cluster level in vCenter Server only
- VsanIoInsightManager – vSAN IOInsight related APIs, operating at both vCenter Server and ESXi Host sides
- VsanRemoteDatastoreSystem – vSAN remote datastore related APIs, operating at vCenter Server only
- VsanDiagnosticsSystem – vSAN diagnostics system related APIs, operating at vCenter Server only
- VsanClusterPowerSystem – vSAN cluster power system related APIs, operating at vCenter Server only

Managed Objects for vSphere Management API/SDK are serviced with the vSphere SDK service endpoint(the Web Service URL - '/sdk').
While the Managed Objects for vSAN API are serviced with dedicated Web Service endpoints.
At ESXi side, the dedicated vSAN API service endpoint is '/vsan'. At VC side, the dedicated vSAN API service endpoint is '/vsanHealth'.

Note:
The HostVsanSystem and VsanUpgradeSystem are inherited MOs from previous version of vSAN. They are serviced as part of the vSphere Management API. So you access these two MOs in the same way of accessing the MOs (i.e. SessionManager) of vSphere APIs with the service endpoint - '/sdk'.
Other Mananged MOs of Vritual vSAN API are serviced under the dedicated endpoints - '/vsan' (for ESXi) and '/vsanHealth' (for VC).

For more information about the vSphere Management API, see vSphere API/SDK Documentation from VMware vSphere Documentation Center.

## vSAN API deprecation history

6.7.0 Update 1 release

- matchingIpSubnets in class VsanClusterNetworkHealthResult

7.0.0 release

- enable in class DrsConfigInfo

## Navigating the API Reference

The vSAN API Reference is an HTML frameset. Click an entry in the left-hand pane to display information in the right-hand pane. To find the description of a specific object type, click the appropriate category name and then refine your search by entering the object name in the search text field.

To quickly find an entry, start typing its name in the Quick Index field.

The most recent published versions of this guide is available at:

http://www.vmware.com/support/developer/vc-sdk