putScalingPolicy
    • PDF

    putScalingPolicy

    • PDF

    Article Summary

    개요

    Scaling 정책(policy)을 생성하거나 변경합니다. 정책 수행을 요청하면 설정된 정책에 따라 scale-in 또는 scale-out action을 수행합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    policyNameYesStringMin : 1
    Max : 255
    - 스케일링 정책의 식별자
    특정 Auto Scaling Group 소속이며 그 범위 안에서는 이 이름 중복 생성 불가
    Auto Scaling Group의 범위 안에서 정책 이름이 없다면 생성을 하고 이미 존재한다면 내용 변경 필요
    하나의 Auto Scaling Group당 최대 10개의 정책 생성 가능
    autoScalingGroupNameYesStringMin : 1, Max : 255정책이 수행될 오토스케일링 그룹명 입력
    adjustmentTypeCodeYesStringMin : 1, Max : 5Group의 capacity를 조정하는 유형코드
    CHANG(Change In Capacity)
    EXACT(ExactCapacity)
    PRCNT(PercentChangeInCapacity)
    scalingAdjustmentYesIntegerMin: -2147483647, Max : 2147483647스케일링을 위한 Group capacity 조정 값
    cooldownNoIntegerMin:0, Max:2147483647스케일링 액션 종료 이후 cooldown 시간 동안은 알람 통보를 받아도 무시
    minAdjustmentStepNoIntegerMin:1, Max:2147483647- 최소 조정 폭(step)
    adjustmentTypeCode 유형이 PRCNT(PercentChangeInCapacity)일 때만 지정 가능 (지정 안 하는 것도 가능)
    PRCNT(PercentChangeInCapacity) 유형일 때 scalingAdjustment에 의한 변경량이 minAdjustmentStep값 보다 작으면 변경량을 minAdjustmentStep으로 세팅

    응답

    응답 바디

    예시

    요청 예시

    {AUTOSCALILNG_API_URL}/putScalingPolicy
    ?adjustmentTypeCode=PRCNT
    &autoScalingGroupName=asg-0602b
    &cooldown=100
    &minAdjustmentStep=2
    &policyName=p-0602
    &scalingAdjustment=40
    

    응답 예시

    <putScalingPolicyResponse>
       <requestId>492648d9-9016-4b29-9773-bc457c2bdefd</requestId>
       <returnCode>0</returnCode>
       <returnMessage>success</returnMessage>
    </putScalingPolicyResponse>
    

    오류 코드

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

    HTTP Response Code리턴 코드리턴 메시지
    40050130The quota for capacity groups or launch configurations for this customer has already been reached.

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

    What's Next
    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.