Query files and associated QoS on cluster-mode

I was wondering if it's possible to use the API provided by NetApp to verify all .vmdk files inside a specific volume managed by a clustered-mode infrastructure and check its QoS policy, if there's no QoS policy, apply one. Has anyone ever done that, or at least parts of this small project?