With vSphere 5.0 Vmware has introduced VM storage profile but I am not able to find any specific API's in the vSphere web services SDK to find out or Query any specific details about the Storage profile or profiles associated with a virtual machine.
Need help here to figure out if there is a new MO or any new method in the existing objects to figure out details about the VM storage profile.
Currently there are no public APIs for the new Storage Drive Profile Policy feature, you will need to manually create/configure them through the vSphere Client for now
Thanks. Create and configure using vi client is okay but what about querying about whether my vm is associated with any profile or not and if it is what is the profile name and other details
Querying the profiles and whether it's in compliance or not is all related to Storage Driven Profile Policy feature and functionality is not avalable in the API today
Is the status of this still the same or has Vmware introduced an Api that allows one to query the storage profile for a vm ?
The status is still the same. I would highly recommend that you file a FR (Feature Request) with VMware to ensure the proper priority is placed on this request.
Sure. In the meanwhile till Vmware addresses this, I am trying to find a way through the eventing framework for the generation of an appropriate event when I associate a Virtual Machine with a storage profile. I see a 'VmReconfiguredEvent" being fired when I associate a vm with a storage profile, but the information on the event isnt enough to clearly tell me the details of the operation. The VmReconfiguredEvent does get fired when one configures the VirtualMachine in anyway, so trying to find a way to distinguish this from an 'associate with storage profile' operation. Any ideas ?
Since the Storage Profile APIs are not available, I suspect trying to identify when an association occurs will be difficult (as the events pertaining to that API would also not be available). VmReconfiguredEvent is a generic Event as you can see from the API docs, you could try digging around and see if there's anything in the task/event details but afaik, this info is not available.