Start Task/Request Service Programmatically?

Which IIQ version are you inquiring about?

8.2

Is it possible to start the Task/Request services on an IdentityIQ 8.2 server programmatically? We use Consul for service discovery and I have created a scheduled task that periodically polls for any new Task Servers that have been spun up to ensure we can dynamically scale to meet need. I can update the ServiceDefinition objects accordingly, but I also want to make sure I have the Task and Request services started on the new host(s). Is there an API that will allow me to do this, rather than requiring me to go into the Administrator Console and switch the toggle on those services?

if you modify the ServiceDefinition/ Task or ServiceDefinition/ Request then automatically that new host will starting acting accordingly .

	 ServiceDefinition sd = context.getObjectByName(ServiceDefinition.class, "Request");
	 sd.getHosts();
	 sd.setHosts("New hostvalue");
	 ServiceDefinition sd = context.getObjectByName(ServiceDefinition.class, "Task");
	 sd.getHosts();
	 sd.setHosts("New hostvalue");
1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.