Integration Server 10.15 | Microservices Runtime Guide | Consul Support | Consul Public Services Folder | pub.consul.client:getAnyHostForService
 
pub.consul.client:getAnyHostForService
WmConsul. Deprecated - There is no replacement service. Queries the Consul server for a list of active hosts that have registered the given microservice with Consul and if there are multiple hosts for this microservice, randomly return one of those hosts.
Input Parameters
registryAlias
String. Optional. Alias to use to connect to a Consul server. If you do not specify this parameter, the service uses the default Consul server alias
microserviceName
String. Microservice for which you want to retrieve an active host.
Output Parameters
hostName
String. Name of a host of the microservice, chosen randomly. The host name is in the format: port (for example, appserver.xyz.com:4555). If there are no hosts registered for the given microservice, returns null.