setDesiredCapacity
    • PDF

    setDesiredCapacity

    • PDF

    기사 요약

    개요

    지정된 Auto Scaling Group에 대한 desired capacity 설정

    요청

    요청 파라미터

    파라미터 명필수 여부타입제약사항설명
    autoScalingGroupNameYesStringMin : 1
    Max : 255
    조회하고자 하는 Auto Scaling 그룹명 입력
    desiredCapacityYesIntegerMin: 0
    Max : 30
    - 기대 서비스 능력
    해당 그룹 소속으로 운영될 서버 인스턴스들의 수를 설정함
    이 값이 Auto Scaling에 이미 세팅되어 있는 기존 속성인 minSize보다 작아서는 안되고, maxSize보다 커서는 안됨

    응답

    응답 바디

    예시

    요청 예시

    {AUTOSCALILNG_API_URL}/setDesiredCapacity
    ?autoScalingGroupName=asg-1
    &desiredCapacity=0
    

    응답 예시

    <setDesiredCapacityResponse>
       <requestId>9b414c18-0b78-4e8f-a20d-4f95a16628be</requestId>
       <returnCode>0</returnCode>
       <returnMessage>success</returnMessage>
       <totalRows>1</totalRows>
       <autoScalingGroupList>
          <autoScalingGroup>
             <autoScalingGroupName>asg-1</autoScalingGroupName>
             <launchConfigurationName>lc-1</launchConfigurationName>
             <desiredCapacity>0</desiredCapacity>
             <minSize>0</minSize>
             <maxSize>0</maxSize>
             <loadBalancerInstanceSummeryList>
                <loadBalancerInstanceSummery>
                   <loadBalancerName>slb-1</loadBalancerName>
                </loadBalancerInstanceSummery>
                <loadBalancerInstanceSummery>
                   <loadBalancerName>slb-2</loadBalancerName>
                </loadBalancerInstanceSummery>
             </loadBalancerInstanceSummeryList>
             <healthCheckGracePeriod>600</healthCheckGracePeriod>
             <healthCheckType>
                <code>SVR</code>
                <codeName>Server</codeName>
             </healthCheckType>
             <createDate>2014-02-13T17:24:19+0900</createDate>
             <inAutoScalingGroupServerInstanceList />
             <suspendedProcessList />
             <zoneList>
                <zone>
                   <zoneNo>2</zoneNo>
                   <zoneName>zone2</zoneName>
                   <zoneDescription>nang zone</zoneDescription>
                </zone>
                <zone>
                   <zoneNo>3</zoneNo>
                   <zoneName>zone3</zoneName>
                   <zoneDescription>nang zone2</zoneDescription>
                </zone>
             </zoneList>
          </autoScalingGroup>
       </autoScalingGroupList>
    </setDesiredCapacityResponse>
    

    에러 코드

    아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다. 공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요

    HTTP Response Code리턴 코드리턴 메시지
    40050120An invalid or out-of-range value was supplied for the input parameter.
    40050160You cannot delete an Auto Scaling group while there are scaling activities in progress for that group.

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.