Retrieve a core service instance ID

You can retrieve a core service instance ID for a component that can be configured to support high availability. Components that cannot be configured to support high availability have only a service instance. The following code sample retrieves a Dispatcher core service instance ID.

Before you begin: Retrieve the following variables:

serviceID integer for the service that you want to find
the core service instance ID of

instanceName string for the name of the core service instance that you want to find the ID for