Theovd
Enthusiast
Enthusiast

getChargebackAttributeByName() question

Hi,


I want to use the getChargebackAttributeByName() method on the  CbServer scripting object to return an attrubute named 'VMType' and that  is defined in vCenter Server.

Currently I get a null object returned. How should I form the name to get the right attribute back.

My code:
var vmTypeAttribute = CBServer.getChargebackAttributeByName("VMType", "2.0");
System.log("vmTypeAttribute: " + vmTypeAttribute);

Regards,

Theo..

Tags (2)
0 Kudos
0 Replies