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

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

 

 

var objProperties;
	objProperties = new Properties();
	objProperties.put("get-rest", "/rest");
	objProperties.put("get-info", "/rest/info");	
	objProperties.put("get-user", "/rest/user");	
	objProperties.put("get-serverinfo", "/rest/serverinfo");
	objProperties.put("post-login", "/rest/login");	
	objProperties.put("get-recheck-list", "/rest/recheck");
	objProperties.put("post-recheck", "/rest/recheck");
	objProperties.put("get-graph", "/rest/graph");	
	objProperties.put("get-event-list", "/rest/event");	
	objProperties.put("get-object-type-list", "/rest/config/{strObjectType}");
	objProperties.put("put-object-type-list", "/rest/config/{strObjectType}");
	objProperties.put("post-object-type-list", "/rest/config/{strObjectType}");
	objProperties.put("delete-object-type-list", "/rest/config/{strObjectType}");	
	objProperties.put("get-object-type-item", "/rest/config/{strObjectType}/{intID}");
	objProperties.put("put-object-type-item", "/rest/config/{strObjectType}/{intID}");
	objProperties.put("post-object-type-item", "/rest/config/{strObjectType}/{intID}");
	objProperties.put("delete-object-type-item", "/rest/config/{strObjectType}/{intID}");
	objProperties.put("get-downtime-list", "/rest/downtime/");
	objProperties.put("post-downtime-item", "/rest/downtime/");
	objProperties.put("delete-downtime-item", "/rest/downtime/{strStartTime}/{strComment}");
	objProperties.put("get-summary-list", "/rest/status/{strObjectType}/");	
	objProperties.put("post-status-list", "/rest/status/");	
	objProperties.put("get-status-item", "/rest/status/{strObjectType}/");
	objProperties.put("get-runtime", "/rest/runtime/{strObjectType}/");
	objProperties.put("get-acknowledge", "/rest/acknowledge/");
	objProperties.put("post-acknowledge", "/rest/acknowledge/{intID}");

Leave a Reply