suspendProcesses

Prev Next

Available in VPC

Suspend the process of Auto Scaling Group.

Syntax

The suspendProcesses syntax is as follows:

./ncloud vautoscaling suspendProcesses \
    --autoScalingGroupNo <auto-scaling-group-no> \
    --scalingProcessCodeList <scaling-process-code-list> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running suspendProcesses.

Required options

The following options are required for suspendProcesses.

Options Type Required Description
--autoScalingGroupNo String Required Auto Scaling Group number
--scalingProcessCodeList List Required Process code list

Common options

For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.

Examples

If the request to suspend the process is successful, the code information for the suspended process is returned.

Command

The command example is as follows:

./ncloud vautoscaling suspendProcesses \
    --autoScalingGroupNo 20461037 \
    --scalingProcessCodeList LANCH TERMT \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
    "suspendProcessesResponse": {
        "processList": [
            {
                "code": "LANCH",
                "codeName": "Create a server instance."
            },
            {
                "code": "TERMT",
                "codeName": "Terminate server instances."
            }
        ],
        "requestId": "c5d6e7f8-a9b0-1234-cdef-567890123456",
        "returnCode": "0",
        "returnMessage": "success"
    }
}