Open topic with navigation

# StopService

The `StopService` action stops the service that you specify using the `Port` parameter.

## Example

`a=StopService&Port=9000`

`a=StopService&Port=9000&ControlMethod=SCM`

NOTE:

You must have Windows administrator privileges to use this action.

## Parameters

Parameter | Description | Required
--- | --- | ---
ControlMethod | The control method to use to stop the service. |
Port | The port that the service that you want to stop is running on. | Yes

## Comments

You can also submit this action from HPE Coordinator by specifying the `ControllerUUID` parameter. By default, the action is asynchronous, but you can run it synchronously by setting the `Synchronous` parameter to `True`.

If the response is successful, the response contains the following information:

- A token for the HPE Controller server (`<ControllerToken>`).
- The request port number (`<Port>`).
- The UUID of the HPE Controller server in question (as specified by the `ControllerUUID` parameter).

You can use the token with the `QueueInfo` action to find the status of the action. For example:

`action=SendAction&ControllerUUID=<UUID>&Command=QueueInfo&QueueAction=GetStatus&QueueName=<Action>&Token=<ControllerToken>`

If the response fails, it contains an error. Usually this is as a result of an issue with underlying HPE Controller server, or as a result of an issue with HPE Coordinator itself if the HPE Controller server is down.

For more information, refer to the HPE Coordinator Reference.

Related Topics

- AddService
- EditServiceInfo
- FindServices
- GetServices
- RemoveService
- RestartService
- StartService

© 2013 - 2017 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