getAutoScalingPolicyList
    • PDF

    getAutoScalingPolicyList

    • PDF

    Article Summary

    개요

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

    설명

    설정 가능한 정책(policy) 조정 유형들을 리스트 형태로 받습니다.

    요청 파라미터

    파라미터 명필수 여부타입제약사항설명
    policyNameListNoListMin : 1, Max : 255- 정책 이름(식별자) 리스트
    지정되어 있지 않으면 사용자가 보유한 모든 정책 정보를 받음
    autoScalingGroupNameNoStringMin : 1, Max : 255조회하고자 하는 오토 스케일링 그룹명 입력
    pageNoNoIntegerMin:0, Max:2147483647리스트 조회시 Pagination의 페이지 정보 입력
    기본 값 0으로 입력한 경우 모든 리스트 조회
    pageSizeNoIntegerMin: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>
    

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

    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.