psm accs restart
This command restarts an Oracle Application Container Cloud Service application.
Note:
This Oracle Application Container Cloud Service release only supports application-level restart, thus at this time, you cannot use it to restart an application instance.Syntax
psm accs restart
-n|--app-name name
[-o|--mode rolling]
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-n , --app-name |
Name of the application. |
-o , ––mode |
(Optional) Restart mode for application instances. The only allowed value is rolling for a rolling restart. Omit this parameter for a concurrent restart.
|
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Example
$ psm accs restart -n employees-app -of json
{
"appId":"cc427540-bd17-443c-99fe-b332a28e579a",
"appURL":"https://psm.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleDomain/employees-app",
"createdBy":"jane.user@example.com",
"creationTime":"2016-04-14T20:18:45.410+0000",
"currentOngoingActivity":"Restarting Application",
"identityDomain":"ExampleDomain",
"instances":[
{
"instanceURL":"https://psm.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleDomain/employees-app/instances/web.1",
"memory":"1G",
"name":"web.1",
"status":"RUNNING"
}
],
"lastModifiedTime":"2016-04-21T14:53:48.853+0000",
"lastestDeployment":{
"deploymentId":"582b5947-3052-48d0-8e25-e4c0090bee9f",
"deploymentStatus":"READY",
"deploymentURL":"https://psm.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleDomain/employees-app/deployments/582b5947-3052-48d0-8e25-e4c0090bee9f"
},
"message":[],
"name":"employees-app",
"runningDeployment":{
"deploymentId":"582b5947-3052-48d0-8e25-e4c0090bee9f",
"deploymentStatus":"READY",
"deploymentURL":"https://psm.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleDomain/employees-app/deployments/582b5947-3052-48d0-8e25-e4c0090bee9f"
},
"status":"RUNNING",
"subscriptionType":"MONTHLY",
"webURL":"https://employees-app-ExampleDomain.apaas.us2.oraclecloud.com"
}
More Information
Stopping, Starting, and Restarting an Application in Using Oracle Application Container Cloud Service