0
votes

I'm struggeling to get my head around Vmware's MOB.

I have found the page in MOB which has got the coresponding fields I'm interested in i.e. DRS and HA setting for a cluster.

However I'm not sure if I can edit them via pyvmomi since the page in the MOB doesn't have any method table below the properties table.

This is what I mean:

My page:

enter image description here

Some other page:

enter image description here

Is it possible to edit DRS and HA properies via pyvmomi or the only thing I can do with pyvmomi is just to "fetch" them?

1

1 Answers

1
votes

You need to use the ReconfigureCluster_Task method of the ClusterComputeResource. Look at the dasConfig and drsConfig fields of the ClusterConfigSpecEx.

These seem to be accessible through pyvmomi as per the example here.