Storage Policy Operations

Use Storage Policy API methods to support virtual machine provisioning.
Storage Policy Operations and Virtual Machine Provisioning
Storage Policy Operation (Storage Policy API)
Virtual Machine Provisioning (vSphere API)
Use the
PbmProfileProfileManager
methods to create and update storage profiles.
Associate storage profiles with virtual machines and virtual disks. See the description of the vSphere API data object properties
VirtualMachineConfigSpec.vmProfile
and
FileBackedVirtualDiskSpec.profile
in the vSphere API Reference. You can also use the
to associate a storage profile with a virtual machine or virtual disk.
Use the
PbmPlacementSolver
methods to identify candidate datastores for storage locations.
Specify the datastores when you create virtual machines and virtual disks. See the description of the vSphere API data object properties
VirtualMachineFileInfo.vmPathName
and
VirtualDeviceFileBackingInfo.datastore
in the vSphere API Reference.
Use the
PbmComplianceManager
methods to check compliance between storage requirements and capabilities.
After you associate a storage profile with a virtual machine or virtual disk, the Server will identify non-compliance if the datastore does not satisfy the requirements of the profile.