psm caching restart
Use this command to restart an Oracle Application Container Cloud Service application cache.
Syntax
psm caching restart
-s|--service-name name
-c|--config-payload payload-file
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-s , --service-name |
Name of the cache. |
-c , --config-payload |
Name of the JSON file that contains configuration information for the application cache. |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Payload File Properties
All properties are required unless otherwise noted.
Parameter | Description |
---|---|
force |
(Optional) Forces the cache to restart despite any PaaS script failures. |
allServiceHosts |
(Optional) Restarts all cluster members of the cache. |
Example
The contents of the stop—start-payload.json
file referenced in the command are:
{
"force":"true",
"allServiceHosts":"true"
}
The example command and its output are:
$ psm caching restart -s MyCacheService -c stop-start-payload.json
{
"details":{
"jobId":"23780",
"message":"Submitted job to [restart] VMs in service [MyCacheService] in domain [apaasuser]."
}
}
Job ID : 23780
More Information
Exploring the Cache Service Overview Page in Using Caches in Oracle Application Container Cloud Service