Available in VPC
Create or edit a scaling schedule for Auto Scaling Group. You can set one-time and repeated execution schedules.
Syntax
The putScheduledUpdateGroupAction syntax is as follows:
./ncloud vautoscaling putScheduledUpdateGroupAction \
--autoScalingGroupNo <auto-scaling-group-no> \
--minSize <min-size> | --maxSize <max-size> | --desiredCapacity <desired-capacity> \
[--scheduledActionNo <scheduled-action-no>] \
[--scheduledActionName <scheduled-action-name>] \
[--startTime <yyyy-MM-ddTHH:mm:ssZ>] \
[--endTime <yyyy-MM-ddTHH:mm:ssZ>] \
[--recurrence <crontab-expression>] \
[--timeZone <KST|UTC>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running putScheduledUpdateGroupAction.
Required options
The following options are required for putScheduledUpdateGroupAction.
| Options | Type | Required | Description |
|---|---|---|---|
--autoScalingGroupNo |
String | Required | Auto Scaling Group number |
--minSize |
Integer | Conditional | Minimum number of servers in the Auto Scaling Group
|
--maxSize |
Integer | Conditional | Maximum number of servers in the Auto Scaling Group
|
--desiredCapacity |
Integer | Conditional | Desired number of servers in the Auto Scaling Group
|
--scheduledActionNo |
String | Conditional | Schedule number
|
--scheduledActionName |
String | Conditional | Schedule name
|
--startTime |
Date | Conditional | Schedule start date and time
|
Optional options
These are the optional options for putScheduledUpdateGroupAction. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--endTime |
Date | Optional | Schedule end date and time
|
--recurrence |
String | Optional | Recurrence settings
|
--timeZone |
String | Optional | Reference time zone
|
Common options
For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.
Examples
If the request to create or edit a scaling schedule is successful, the configuration information for the scaling schedule is returned.
Command
The command example is as follows:
./ncloud vautoscaling putScheduledUpdateGroupAction \
--autoScalingGroupNo 20461037 \
--scheduledActionName schedule-01 \
--minSize 0 \
--maxSize 2 \
--desiredCapacity 1 \
--startTime 2026-12-01T03:00:00+0900 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"putScheduledUpdateGroupActionResponse": {
"totalRows": 1,
"scheduledUpdateGroupActionList": [
{
"autoScalingGroupNo": "20461037",
"scheduledActionNo": "13650027",
"scheduledActionName": "schedule-01",
"minSize": 0,
"maxSize": 2,
"desiredCapacity": 1,
"startTime": "2026-12-01T03:00:00+0900",
"recurrence": "",
"timeZone": "KST"
}
],
"requestId": "e1f2a3b4-c5d6-7890-efab-123456789012",
"returnCode": "0",
"returnMessage": "success"
}
}