Open topic with navigation

# AddService

The `AddService` action enables you to add a service to an HPE Controller server. 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:/HewlettPackardEnterprise/IDOLServer/IDOL/HewlettPackardEnterpriseIDOLServer.exe`

`a=AddService&ExecPath=C:/HewlettPackardEnterprise/IDOLServer/IDOL/HewlettPackardEnterpriseIDOLServer.exe&ConfigPath=HewlettPackardEnterpriseIDOLServer.cfg&ControlMethod=SCM&SCMServiceName=IDOLServer`

`a=AddService&ExecPath=C:/HewlettPackardEnterprise/IDOLServer/IDOL/HewlettPackardEnterpriseIDOLServer.exe&Name=idol&Type=content&Labels=label1,key2:value2`

## Parameters

Parameter | Description | Required
--- | --- | ---
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 HPE Coordinator by specifying the `ControllerUUID` parameter. For more information, refer to the HPE Coordinator Reference.

Related Topics

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

© 2013 - 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm