setDesiredCapacity

Prev Next

VPC 환경에서 이용 가능합니다.

개요

Auto Scaling Group의 상세 정보 중 기대 용량 설정을 수정합니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
regionCode No String - 리전 코드
기대 용량을 수정할 Auto Scaling Group의 리전(Region) 결정 가능
regionCode는 getRegionList 액션을 통해 획득 가능
Default : getRegionList 조회 결과의 첫 번째 리전을 선택
autoScalingGroupNo Yes String - 기대 용량을 수정할 Auto Scaling Group 번호
autoScalingGroupNo는 getAutoScalingGroupList 액션을 통해 획득 가능
desiredCapacity Yes Integer Min : 0, Max : 30 - 기대 용량
기대 용량값에 따라서 서버의 수가 조정됨
변경하려는 기대 용량은 이미 설정되어 있는 minSize 보다 크거나 같고, maxSize 보다 작거나 같은 값이어야 함
responseFormatType No String - 응답 결과의 포맷 타입
Options : xml | json
Default : xml

응답

응답 바디

예시

요청 예시

GET {API_URL}/setDesiredCapacity
?regionCode=KR
&autoScalingGroupNo=***700
&desiredCapacity=0

응답 예시

<setDesiredCapacityResponse>
  <requestId></requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <autoScalingGroupList>
    <autoScalingGroup>
      <vpcNo>***04</vpcNo>
      <subnetNo>***43</subnetNo>
      <serverNamePrefix></serverNamePrefix>
      <autoScalingGroupNo>***700</autoScalingGroupNo>
      <autoScalingGroupName>test-***</autoScalingGroupName>
      <launchConfigurationNo>***163</launchConfigurationNo>
      <minSize>0</minSize>
      <maxSize>0</maxSize>
      <desiredCapacity>0</desiredCapacity>
      <defaultCoolDown>300</defaultCoolDown>
      <healthCheckGracePeriod>300</healthCheckGracePeriod>
      <healthCheckType>
        <code>SVR</code>
        <codeName>Server</codeName>
      </healthCheckType>
      <createDate>2020-12-07T13:10:30+0900</createDate>
      <autoScalingGroupStatus>
        <code>CREAT</code>
        <codeName>Created</codeName>
      </autoScalingGroupStatus>
      <targetGroupNoList/>
      <inAutoScalingGroupServerInstanceList/>
      <accessControlGroupNoList>
        <accessControlGroupNo>***63</accessControlGroupNo>
      </accessControlGroupNoList>
      <suspendedProcessList/>
    </autoScalingGroup>
  </autoScalingGroupList>
</setDesiredCapacityResponse>