UpdateServiceConfig
The UpdateServiceConfig
action updates the configuration file for a service. You can also optionally restart the service to make the new configuration active.
Required Parameters
The following action parameters are required.
Parameter | Description |
---|---|
OldCheckSum | The checksum of the previous version of the configuration file. |
Port |
The action port of the service whose configuration file you want to update. |
Optional Parameters
This action accepts the following optional parameters.
Parameter | Description |
---|---|
ConfigData | Data in multipart/form-data format sent as part of the action that contains the new configuration to use. |
ConfigFileName | The path to a file name on the target machine that contains the new configuration file to use. |
ControlMethod | The control method to use to restart the service. |
RestartService | Whether to stop the service before updating the configuration file, and then restart it. |
Comments
You must specify one of ConfigData
or ConfigFileName
.
You can also submit this action from Coordinator by specifying the ControllerUUID
parameter. For more information, refer to the Coordinator Reference.