Storage Profile Queries
The Storage Policy API includes several methods that you can use to query for profiles and vSphere entities (datastores, virtual machines, and virtual disks). The following table provides an overview of these methods. For more information, see the Storage Policy API Reference.
Returns PbmQueryProfileResult objects. Each result object identifies an entity and one or more profiles. Profile type is determined by entity type.
Returns datastores and/or datastore clusters that satisfy the specified requirement profile. To retrieve the profiles associated with a datastore, call PbmQueryMatchingHub for each profile in the system. In the vSphere Web Client, datastore clusters are called storage pods.