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.

getAutoScalingPolicyList

Prev Next

개요

Auto Scaling 정책(policy) 들에 대한 설명을 리스트 형태로 받습니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
policyNameList No List Min : 1, Max : 255 - 정책 이름(식별자) 리스트
지정되어 있지 않으면 사용자가 보유한 모든 정책 정보를 받음
autoScalingGroupName No String Min : 1, Max : 255 조회하고자 하는 오토스케일링 그룹명 입력
pageNo No Integer Min:0, Max:2147483647 리스트 조회 시 Pagination의 페이지 정보 입력
기본 값 0으로 입력한 경우 모든 리스트 조회
pageSize No Integer Min:0, Max:2147483647 리스트 조회 시 Pagination의 페이지당 정보 개수 입력
기본 값 0으로 입력한 경우 모든 목록 조회
responseFormatType No String - 응답 결과의 포맷 타입
Options : xml | json
Default : xml

응답

응답 바디

예시

요청 예시

{AUTOSCALILNG_API_URL}/getAutoScalingPolicyList
?autoScalingGroupName=asg-0602b
&pageNo=1
&pageSize=10
&policyNameList.1=scale-out
&policyNameList.2=scale-in

응답 예시

<getAutoScalingPolicyListResponse>
   <requestId>b3b5947c-a4fd-4104-b619-ba472665d50c</requestId>
   <returnCode>0</returnCode>
   <returnMessage>success</returnMessage>
   <totalRows>2</totalRows>
   <scalingPolicyList>
      <scalingPolicy>
         <policyName>scale-in</policyName>
         <autoScalingGroupName>asg-0602b</autoScalingGroupName>
         <adjustmentType>
            <code>CHANG</code>
            <codeName>ChangeInCapacity</codeName>
         </adjustmentType>
         <scalingAdjustment>-1</scalingAdjustment>
      </scalingPolicy>
      <scalingPolicy>
         <policyName>scale-out</policyName>
         <autoScalingGroupName>asg-0602b</autoScalingGroupName>
         <adjustmentType>
            <code>PRCNT</code>
            <codeName>PercentChangeInCapacity</codeName>
         </adjustmentType>
         <scalingAdjustment>50</scalingAdjustment>
         <cooldown>600</cooldown>
         <minAdjustmentStep>2</minAdjustmentStep>
      </scalingPolicy>
   </scalingPolicyList>
</getAutoScalingPolicyListResponse>