Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

How to Execute Bluecat API calls with a Scriptable Task in vRO 6

$
0
0

Throwing this out to the community for some guidance.  I'm still VERY new to javascript & vRO.

 

I have vRO6 running with the Bluecat IPAM Plugin installed and working with the out-of-the-box actions & plugins.  Great.

 

What I'm struggling with is that I'm trying to create some custom scriptable tasks that can do "other" things listed in the Bluecat API guide..  Looking at the guide, some things are easy but others make absolutely no sense to me.

 

An example of what I don't understand is the follow... the API guide will show an example specific to java api coding but it doesn't explain how I do that in a vRO scriptable task.

 

Update in Java:

 

APIEntity zone = service.getEntityById( zoneId );

EntityProperties properties = new EntityProperties(zone.getProperties()); //Populate with the existing values and then update the only properties which need to be modified.

properties.addProperty("TextUDF", "testTextValue");

properties.addProperty("IntegerUDF", "1005");

zone.setProperties(properties.getPropertiesString());

service.update(zone);

 

So that's 6 lines of code but executing a vRO Bluecat api call seems to be expecting a single line something like this:

result = BCNProteusAPI.call( profileName, "method()", args );

 

Am I making any sense?  Any guidance here? 

 

Thanks!!!


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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