--- title: "setDesiredCapacity" slug: "cli-vautoscaling-autoscalinggroup-setdesiredcapacity" updated: 2026-06-25T09:10:27Z published: 2026-06-25T09:10:27Z canonical: "cli-fin.ncloud-docs.com/cli-vautoscaling-autoscalinggroup-setdesiredcapacity" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # setDesiredCapacity ## 개요 Auto Scaling Group의 상세 정보 중 기대 용량 설정을 수정합니다. ## 요청 ### 요청 파라미터 | 파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 | | ---------------------------------- | ------------ | --------------------- | ------------------------- | ------------------------------------------- | | regionCode | No | String | | - 리전 코드
기대 용량을 수정할 Auto Scaling Group의 리전(Region) 결정 가능
regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능
Default : getRegionList 조회 결과의 첫 번째 리전을 선택 | | autoScalingGroupNo | Yes | String | | - 기대 용량을 수정할 Auto Scaling Group 번호
autoScalingGroupNo는 [getAutoScalingGroupList](/docs/cli-vautoscaling-autoscalinggroup-getautoscalinggrouplist) 액션을 통해 획득 가능 | | desiredCapacity | Yes | Integer | Min : 0, Max : 30 | - 기대 용량
기대 용량값에 따라서 서버의 수가 조정됨
변경하려는 기대 용량은 이미 설정되어 있는 minSize 보다 크거나 같고, maxSize 보다 작거나 같은 값이어야 함 | | responseFormatType | No | String | | - 응답 결과의 포맷 타입
Options : xml \| json
Default : xml | ## 응답 ### 응답 데이터 타입 - AutoScalingGroupList 타입 | AutoScalingGroupList extends CommonResponse | | ---------- | | private Integer totalRows; | | private List autoScalingGroup = new ArrayList<>(); | | AutoScalingGroup | | ---------- | | private String vpcNo; | | private String subnetNo; | | private String serverNamePrefix; | | private String autoScalingGroupNo; | | private String autoScalingGroupName; | | private String launchConfigurationNo; | | private Integer minSize; | | private Integer maxSize; | | private Integer desiredCapacity; | | private Integer defaultCoolDown; | | private Integer healthCheckGracePeriod; | | private CommonCode healthCheckType; | | private Date createDate; | | private CommonCode autoScalingGroupStatus; | | private TargetGroupNoList targetGroupNoList; | | private List inAutoScalingGroupServerInstanceList; | | private AccessControlGroupNoList accessControlGroupNoList; | | private List suspendedProcessList; | | TargetGroupNoList | | ---------- | | private List targetGroupNoList = new ArrayList<>(); | | InAutoScalingGroupServerInstance | | ---------- | | private String serverInstanceNo; | | private CommonCode healthStatus; | | private CommonCode lifecycleState; | | AccessControlGroupNoList | | ---------- | | private List accessControlGroupNoList = new ArrayList<>(); | | SuspendedProcess | | ---------- | | private CommonCode process; | | private String suspensionReason; | ## 예시 ### 요청 예시 ``` ncloud vautoscaling setDesiredCapacity --regionCode FKR --autoScalingGroupNo ***700 --desiredCapacity 0 ``` ### 응답 예시 ```xml 0 success 1 ***04 ***43 ***700 test-*** ***163 0 0 0 300 300 SVR Server 2020-12-07T13:10:30+0900 CREAT Created ***63 ```