getLoadBalancerRuleList
    • PDF

    getLoadBalancerRuleList

    • PDF

    기사 요약

    VPC 환경에서 이용 가능합니다.

    개요

    로드밸런서 리스너에 등록된 규칙 리스트를 조회합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    regionCodeNoString- 리전 코드
    규칙 리스트가 조회될 로드밸런서 인스턴스의 리전(Region) 결정
    regionCode는 getRegionList 액션을 통해서 획득
    Default : getRegionList 조회 결과의 첫 번째 리전을 선택
    loadBalancerListenerNoYesString- 규칙 리스트를 조회할 로드밸런서 리스너 번호
    loadBalancerListenerNo는 getLoadBalancerListenerList 액션을 통해서 획득
    responseFormatTypeNoString- 응답 결과의 포맷 타입
    Options : xml | json
    Default : xml

    응답

    응답 데이터 타입

    • LoadBalancerRuleList 타입
    LoadBalancerRuleList extends CommonResponse
    private Integer totalRows;
    private List loadBalancerRuleList = new ArrayList<>();
    LoadBalancerRule
    private String loadBalancerListenerNo;
    private String loadBalancerRuleNo;
    private Integer priority;
    private List loadBalancerRuleConditionList;
    private List loadBalancerRuleActionList;
    LoadBalancerRuleCondition
    private CommonCode ruleConditionType;
    private HostHeaderCondition hostHeaderCondition;
    private PathPatternCondition pathPatternCondition;
    HostHeaderCondition
    private HostHeaderList hostHeaderList;
    HostHeaderList
    private List hostHeaderList = new ArrayList<>();
    PathPatternCondition
    private PathPatternList pathPatternList;
    PathPatternList
    private List pathPatternList = new ArrayList<>();
    LoadBalancerRuleAction
    private CommonCode ruleActionType;
    private TargetGroupAction targetGroupAction;
    private RedirectionAction redirectionAction;
    TargetGroupAction
    private List targetGroupWeightList;
    private Boolean useStickySession;
    TargetGroupWeight
    private String targetGroupNo;
    private Integer weight;
    RedirectionAction
    private String protocol;
    private String port;
    private String host;
    private String path;
    private String query;
    private String statusCode;

    예시

    요청 예시

    ncloud vloadbalancer getLoadBalancerRuleList --regionCode KR --loadBalancerListenerNo ***961
    

    응답 예시

    <getLoadBalancerRuleListResponse>
      <requestId>884a2d69-3fd2-4237-8ae9-b9bce9fc98d4</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <loadBalancerRuleList>
        <loadBalancerRule>
          <loadBalancerListenerNo>***961</loadBalancerListenerNo>
          <loadBalancerRuleNo>***444</loadBalancerRuleNo>
          <priority>10000</priority>
          <loadBalancerRuleConditionList>
            <loadBalancerRuleCondition>
              <ruleConditionType>
                <code>DEFAULT</code>
                <codeName>Default condition</codeName>
              </ruleConditionType>
            </loadBalancerRuleCondition>
          </loadBalancerRuleConditionList>
          <loadBalancerRuleActionList>
            <loadBalancerRuleAction>
              <ruleActionType>
                <code>TARGET_GROUP</code>
                <codeName>Target Group action</codeName>
              </ruleActionType>
              <targetGroupAction>
                <targetGroupWeightList>
                  <targetGroupWeight>
                    <targetGroupNo>***095</targetGroupNo>
                    <weight>1</weight>
                  </targetGroupWeight>
                </targetGroupWeightList>
                <useStickySession>false</useStickySession>
              </targetGroupAction>
            </loadBalancerRuleAction>
          </loadBalancerRuleActionList>
        </loadBalancerRule>
      </loadBalancerRuleList>
    </getLoadBalancerRuleListResponse>
    

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

    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.