psm jcs restart

Use this command to restart all nodes in a service instance, or to restart specific WebLogic Server or Load Balancer nodes in a service instance. When you use this command, you must specify a server name or the host name of the load balancer to identify the Administration Server, Managed Server, or load balancer you want to restart.

If your Oracle Java Cloud Service instance is based on an HOURLY metering frequency, you will not be charged for the time that the service instance is in a stopped state.

For complete information about what happens when an instance is stopped and started, see About Stopping and Starting an Oracle Java Cloud Service Instance and Individual VMs in Administering Oracle Java Cloud Service.


In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm jcs restart -s|--service-name serviceName  
  -c|--config-payload pathToPayloadJSON
      [-of|-–output-format json|html|short]
      [-wc|--wait-until-complete true|false] 


All parameters are required unless otherwise noted.

Parameter Description
-s|--service-name serviceName Name of the Oracle Java Cloud Service instance.
-c|--config-payload pathToPayloadJSON Specifies the path to the JSON file containing the information necessary to restart a Java Cloud Service instance. The format of this file, as shown in Sample Payload, is the same as the request body you provide when restarting a Java Cloud Service instance by using the REST API. For information about this format, see the Request/Body (stopstart-postrequestm) section of Stop and Start a Service Instance and Individual VMs in the REST API for Oracle Java Cloud Service.
-of|-–output-format json|html|short (Optional) Output format of the command’s response:

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the CLI.

-wc|--wait-until-complete true|false

(Optional) A boolean value that, when set to true, makes the command behave synchronously; that is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:
Waiting for the job to complete... (it cannot be cancelled)
Default: false

Sample Payload


For descriptions of the payload parameters, see the Request/Body (stopstart-postrequestm) section of Stop and Start a Service Instance and Individual VMs in the REST API for Oracle Java Cloud Service.

This payload retarts an entire service instance.

   "allServiceHosts" : true
This payload restarts a single WLS host.
   "components": {
      "WLS": {
         "hosts": ["exampleinstance-wls-2"]


$ psm jcs restart -s Example1Instance -c /home/templates/start-jcs-service.json  -of json 
Job ID : 34353

Note that this command returned a job ID. To see the status of your restart operation, use this ID with the psm jcs operation-status command:

$ psm jcs operation-status -j 34353 -of json

When you see the message:


the service was successfully created.