setDesiredCapacity
    • PDF

    setDesiredCapacity

    • PDF

    기사 요약

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

    개요

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

    요청

    요청 파라미터

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

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

    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.