VMware {code} Community
kumars17
Contributor
Contributor

VM Storage profile specific APi

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.

0 Kudos
7 Replies
lamw
Community Manager
Community Manager

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

0 Kudos
kumars17
Contributor
Contributor

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

0 Kudos
lamw
Community Manager
Community Manager

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

0 Kudos
Gokul_K
Contributor
Contributor

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 ?

0 Kudos
lamw
Community Manager
Community Manager

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.

0 Kudos
Gokul_K
Contributor
Contributor

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 ?

0 Kudos
lamw
Community Manager
Community Manager

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.

0 Kudos