I'm having trouble assigning the replicationGroupId on a VcReplicationSpec object. I have the code below:
var repGroupName = 'replicationGroup1';
var replicationSpec = new VcReplicationSpec();
replicationSpec.replicationGroupId = repGroupName;
However, I get this error on the last line:
Cannot convert replicationGroup1 to com.vmware.o11n.sdk.modeldriven.ModelWrapper
I think it's looking for a different object, this blog post suggests it needs a corresponding VcReplicationGroupId, but I'm not sure how to take the name of the replication group I have, and resolve its matching VcReplicationGroupId. Any ideas?