Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: vRealize Automation API - Create a Machine Prefix

$
0
0

Kericmiles,

 

I'm trying to understand this...

What I believe I would need to do is create a vRO Action with this snippet in it.

var modelName = "ManagementModelEntities.svc";

var entitySetName = "HostNamePrefixes";

var entities = vCACEntityManager.readModelEntitiesByCustomFilter(host.id, modelName, entitySetName);

var inputProperties = {

  MachinePrefix:Prefix,

  NextMachineNo:NextNumber,

  MachineNumberLength:NumberofDigits

};

entity = vCACEntityManager.createModelEntity(host.id, modelName, entitySetName, inputProperties, entities[0].getLinks(host));

 

Supporting it I have created 3 parameters:

Prefix: String

NextNumber: Number

NumberofDigits: Number

Are there any other items that I should be providing the data for, such ashost, which my code seems to be failing at?

If so what should it be pointing at?

Others?

 

Thanks,

Bill S.


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>