--- title: "putScalingPolicy" slug: "compute-autoscaling-putscalingpolicy" tags: ["Auto Scaling"] updated: 2026-11-24T09:25:56Z published: 2026-11-24T09:25:56Z canonical: "api.ncloud-docs.com/compute-autoscaling-putscalingpolicy" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # putScalingPolicy ## 개요 Scaling 정책(policy)을 생성하거나 변경합니다. 정책 수행을 요청하면 설정된 정책에 따라 scale-in 또는 scale-out action을 수행합니다. ## 요청 ### 요청 파라미터 | 파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 | | --- | --- | --- | --- | --- | | policyName | Yes | String | Min : 1 Max : 255 | - 스케일링 정책의 식별자 특정 Auto Scaling Group 소속이며 그 범위 안에서는 이 이름 중복 생성 불가 Auto Scaling Group의 범위 안에서 정책 이름이 없다면 생성을 하고 이미 존재한다면 내용 변경 필요 하나의 Auto Scaling Group당 최대 10개의 정책 생성 가능 | | autoScalingGroupName | Yes | String | Min : 1, Max : 255 | 정책이 수행될 오토스케일링 그룹명 입력 | | adjustmentTypeCode | Yes | String | Min : 1, Max : 5 | Group의 capacity를 조정하는 유형코드 `CHANG`(Change In Capacity) `EXACT`(ExactCapacity) `PRCNT`(PercentChangeInCapacity) | | scalingAdjustment | Yes | Integer | Min: -2147483647, Max : 2147483647 | 스케일링을 위한 Group capacity 조정 값 | | cooldown | No | Integer | Min:0, Max:2147483647 | 스케일링 액션 종료 이후 cooldown 시간 동안은 알람 통보를 받아도 무시 | | minAdjustmentStep | No | Integer | Min:1, Max:2147483647 | - 최소 조정 폭(step) adjustmentTypeCode 유형이 `PRCNT`(PercentChangeInCapacity)일 때만 지정 가능 (지정 안 하는 것도 가능) `PRCNT`(PercentChangeInCapacity) 유형일 때 scalingAdjustment에 의한 변경량이 minAdjustmentStep값 보다 작으면 변경량을 minAdjustmentStep으로 세팅 | | responseFormatType | No | String | | - 응답 결과의 포맷 타입 Options : xml \| json Default : xml | ## 응답 ### 응답 바디 - [CommonResponse](/docs/common-apidatatype-commonresponse) ## 예시 ### 요청 예시 ``` {AUTOSCALILNG_API_URL}/putScalingPolicy ?adjustmentTypeCode=PRCNT &autoScalingGroupName=asg-0602b &cooldown=100 &minAdjustmentStep=2 &policyName=p-0602 &scalingAdjustment=40 ``` ### 응답 예시 ``` 492648d9-9016-4b29-9773-bc457c2bdefd 0 success ``` ## 오류 코드 아래 오류 코드는 이 액션(Action)에서 특징적으로 발생하는 오류입니다. 공통적으로 발생하는 오류에 대한 상세한 설명은 [오류 처리](/docs/api-call-lgc-errorhandling)를 참조해 주십시오. | HTTP Response Code | 리턴 코드 | 리턴 메시지 | | --- | --- | --- | | 400 | 50130 | The quota for capacity groups or launch configurations for this customer has already been reached. |