psm stack stop

Use this command to stop all resources in a stack.

Syntax

psm stack stop -n|--name stackName 
     [-c|--config-payload path-to-payload]
     [-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
—n|--name stackName Name of the stack to start.
-c|--config-payload path-to-payload (Optional) Path to the JSON file that contains the Stack configuration parameters. The format of this file, as shown in Payload Example, is the same as the request body you provide when stopping a Stack instance by using the REST API. For information about this format, open the ”Components” section of the “Body Parameter” section of Stop a Stack in the REST API for Oracle Cloud Stack Manager.
-of|--output-format json|html|short (Optional) Desired output format.

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the psm 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

Payload Example

Required properties are indicated as "required". Replace in the actual payload with real values.

{
    "operationType":"STOP",
    "dbcs":{
        "parameters":{
            "dbaName":"sys",
            "dbaPaasword":"Welcome#123"
        }
    },
    "jcs":{
        "parameters":{
            "serviceParameters":{
                "dbaName":"sys",
                "dbaPaasword":"Welcome#123"
            },
            "componentParameters":{
                "OTD":{
                    "param1":"value1"
                }
            }
        }
    }
}

Example

$ psm stack stop -n MyStack -c c://myDisk/payloads/stop.json