VMware Cloud Community
UofS
Enthusiast
Enthusiast

How to disable a VDC?

Man... These types are messing me up:

vdc is input type vCloud:AdminVDC

vdc.isEnabled = false;
actionResult = System.getModule("com.vmware.library.vCloud.operation.admin").updateAdminVdc(vdc);

TypeError: Cannot find function update in object DynamicWrapper (Instance) : [VclVdc]-[class com.vmware.vmo.plugin.vcloud.model.Vdc] -- VALUE : com.vmware.vmo.plugin.vcloud.model.Vdc@271f957d. (Dynamic Script Module name : updateAdminVdc#1)

0 Kudos
1 Reply
cdecanini_
VMware Employee
VMware Employee

vCO tells you the object is of type VclVdc so you may have missed something.

It must be of type AdminVdc.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos