Set the configured JAVA_HOME of an agent

This command requests the agent set JAVA_HOME, but does not wait for or report the result. The new JAVA_HOME will not take effect until the agent is restarted. The returned maintenance task can be used to query the result.


POST https://{hostname}:{port}
Accept: application/json
Table 1. Request parameters
Parameter Type Required Description
agent string true Name or ID of the agent
javahome string true Name of managed Java install or absolute path of a valid JAVA_HOME directory
Table 2. Header parameters
Parameter Type Required Description
Accept application/json true

Related CLI command: setAgentJavaHome.