Controller 25.2
Controller Reference

# AddService

The `AddService` action enables you to add a service to Controller. You can include the following information to specify the service that you want to include:

- Path
- Executable name
- Configuration file name
- Control method
- Windows service name
- Script
- Name
- Type
- Labels

The action reads the port information for the service from the configuration file, and includes it in the response.

## Example

    a=AddService&ExecPath=C:/OpenText/KnowledgeDiscovery/Content/Content.exe

    a=AddService&ExecPath=C:/OpenText/KnowledgeDiscovery/Content/Content.exe&ConfigPath=Content.cfg&ControlMethod=SCM&SCMServiceName=Content

    a=AddService&ExecPath=C:/OpenText/KnowledgeDiscovery/Content/Content.exe&Name=content&Type=content&Labels=label1,key2:value2

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
ExecPath | The full path of the executable file for the service that you want to add.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
ConfigPath | The path to the configuration file of the service that you want to add.
ControlMethod | The control method to use.
ExecPath | The full path of the executable file for the service that you want to add.
InitScriptPath | The path to the script to use to control the service.
Labels | Any labels to associate with the service.
Name | A name for the service that you want to add.
SCMServiceName | The name of the Windows service, if applicable.
Type | A description of the type of service.

## Comments

You can also submit this action from Coordinator by specifying the `ControllerUUID` parameter. For more information, refer to the Coordinator Reference.

## See Also

- EditServiceInfo
- FindServices
- GetServices
- RemoveService
- RestartService
- StartService
- StopService

Copyright 2015-2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Controller 25.2

Topic Title: AddService