Hi All,
I am trying to create a new cluster on a vCenter using the creatCluster method. The commands fails with "A specified parameter was not correct" error message.
I call the method like this:
$parent->CreateClusterEx('name'=>"Cluster2",'spec'=>$clusterSpec);
Here is the data::dumper output for the $clusterSpec :
$VAR1 = bless( {
'dasConfig' => bless( {
'vmMonitoring' => 'vmMonitoringDisabled',
'hostMonitoring' => 'disabled',
'enabled' => 0
}, 'ClusterDasConfigInfo' )
}, 'ClusterConfigSpec' );
And here the data::Dumper output for the fault error returned by the clusterCreateEX method:
VAR1 = bless( {
'detail' => bless( {}, 'InvalidArgument' ),
'fault_string' => 'A specified parameter was not correct.
',
'name' => 'InvalidArgumentFault'
}, 'SoapFault' );
When i removed the "spec" passed to the method (i.e create a cluster with default settings), it passed.
Can anyone help understand what i'm doing wrong here?
Regards,
Dori