vCO Workflow Script to Add REST Operations to a REST Host for InfoBlox – Part 1

The following script is part 1 and enables the addition of REST Operations to a REST Host for InfoBlox

 

 

 

var objProperties;
	objProperties = new Properties();
	objProperties.put("post-a", "/wapi/v1.1/record:a");
	objProperties.put("post-cname", "/wapi/v1.1/record:cname");
	objProperties.put("get-a", "/wapi/v1.1/record:host?_return_type=json&name={strRecordA}");
	objProperties.put("get-cname", "/wapi/v1.1/record:cname?_return_type=json&name={strRecordCName}");
	objProperties.put("delete-a", "/wapi/v1.1/record:host/{strRecordReference}?_return_type=json");
	objProperties.put("delete-cname", "/wapi/v1.1/record:cname/{strRecordReference}?_return_type=js");

Leave a Reply