VPC 환경에서 이용 가능합니다.
개요
로드밸런서 리스너에 등록된 규칙 리스트를 조회합니다.
요청
요청 파라미터
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|
regionCode | No | String | | - 리전 코드 규칙 리스트가 조회될 로드밸런서 인스턴스의 리전(Region) 결정 가능 regionCode는 getRegionList 액션을 통해 획득 가능 Default : getRegionList 조회 결과의 첫 번째 리전을 선택 |
loadBalancerListenerNo | Yes | String | | - 규칙 리스트를 조회할 로드밸런서 리스너 번호 loadBalancerListenerNo는 getLoadBalancerListenerList 액션을 통해 획득 가능 |
응답
응답 데이터 타입
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>
의견을 보내 주셔서 감사합니다! 우리 팀이 당신에게 돌아갈 것입니다.