VMware {code} Community
fvd1
Contributor
Contributor

Orchestrator: set DRS automation to Manual in Javascript?

Hello,

I'd like to implement a workflow in vRO Orchestrator, the standalone installation, to set DRS automationLevel to "Manual" upon reception of some SNMP traps from vCenter.

I know there is the SNMP plugin, but I can't find anything about setting DRS automationLevel. Does that mean I have to code it in Java Script ? I don't want to install a 2nd Windows host for Powershell.

Any help appreciated on coding this so it can be called from the vRO.

 

Regards

 

Francis

 

0 Kudos
1 Reply
fvd1
Contributor
Contributor

Found VC Plugin API documentation to change DRS automation level of a cluster:

https://vdc-download.vmware.com/vmwb-repository/dcr-public/3325c370-b58c-4799-99ff-58ae3baac1bd/4578...

 

VC:ClusterComputeResource.ClusterConfigInfo.drsConfig:
   Data Object - ClusterDrsConfigInfo(vim.cluster.DrsConfigInfo):
      Mandatory Property defaultVmBehavior of Type DrsBehavior

DrsBehavior(vim.cluster.DrsConfigInfo.DrsBehavior): fullyAutomated, manual, partiallyAutomated

I'll give it a try tomorrow

0 Kudos