Thanks! I've got this script after a lot of searching.
But I just have a little problem:
if I want to create a RDM, not store with Virtual Machine, but store in a specific datastore, can we specify that?
Is there any API or parameter I can change to achieve that?
Thanks!