Documentation Index

Fetch the complete documentation index at: https://cli-gov.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getAutoScalingPolicyList

Prev Next

개요

오토 스케일링 정책 리스트 조회

설명

설정 가능한 정책(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으로 입력한 경우 모든 목록 조회

응답 데이터 타입

  • ScalingPolicyList 타입
ScalingPolicyList extends CommonResponse
private Integer totalRows;
private List scalingPolicyList = new ArrayList();
ScalingPolicy extends BaseObject
private String policyName;
private String autoScalingGroupName;
private CommonCode adjustmentType;
private Integer scalingAdjustment;
private Integer cooldown;
private Integer minAdjustmentStep;

예시

호출

ncloud autoscaling getAutoScalingPolicyList --policyNameList test-autoscaling-policy

응답

{
  "getAutoScalingPolicyListResponse": {
    "requestId": "17f3d224-a06c-4159-a46d-b5c1b138750e",
    "returnCode": "0",
    "returnMessage": "success",
    "totalRows": 1,
    "scalingPolicyList": [
      {
        "policyName": "test-autoscaling-policy",
        "autoScalingGroupName": "soso02",
        "adjustmentType": {
          "code": "EXACT",
          "codeName": "ExactCapacity"
        },
        "scalingAdjustment": 22
      }
    ]
  }
}
<?xml version="1.0" encoding="UTF-8" ?>
<getAutoScalingPolicyListResponse>
  <requestId>17f3d224-a06c-4159-a46d-b5c1b138750e</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <scalingPolicyList>
    <policyName>test-autoscaling-policy</policyName>
    <autoScalingGroupName>soso02</autoScalingGroupName>
    <adjustmentType>
      <code>EXACT</code>
      <codeName>ExactCapacity</codeName>
    </adjustmentType>
    <scalingAdjustment>22</scalingAdjustment>
  </scalingPolicyList>
</getAutoScalingPolicyListResponse>