VMware Aria Automation Orchestrator

 View Only

How do I get a replication group ID from a replication group name?

  • 1.  How do I get a replication group ID from a replication group name?

    Posted Jan 14, 2020 03:24 PM

    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?