Available in VPC
Get the list of rules registered with a load balancer listener.
Syntax
The getLoadBalancerRuleList syntax is as follows:
./ncloud vloadbalancer getLoadBalancerRuleList \
--loadBalancerListenerNo <load-balancer-listener-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getLoadBalancerRuleList.
Required options
The following options are required for getLoadBalancerRuleList.
| Options | Type | Required | Description |
|---|---|---|---|
--loadBalancerListenerNo |
String | Required | Load balancer listener number |
Common options
For information about the options common to all vloadbalancer subcommands, see Load Balancer (VPC) options.
Examples
If the request to retrieve the list of load balancer rules is successful, the conditions and action information for each rule are returned.
Command
The command example is as follows:
./ncloud vloadbalancer getLoadBalancerRuleList \
--loadBalancerListenerNo 60001111 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getLoadBalancerRuleListResponse": {
"totalRows": 1,
"loadBalancerRuleList": [
{
"loadBalancerListenerNo": "60001111",
"loadBalancerRuleNo": "70001111",
"priority": 10000,
"loadBalancerRuleConditionList": [
{
"ruleConditionType": {
"code": "DEFAULT",
"codeName": "Default condition"
}
}
],
"loadBalancerRuleActionList": [
{
"ruleActionType": {
"code": "TARGET_GROUP",
"codeName": "Target Group action"
},
"targetGroupAction": {
"targetGroupWeightList": [
{
"targetGroupNo": "55667788",
"weight": 1
}
],
"useStickySession": false
}
}
]
}
],
"requestId": "c5d6e7f8-a9b0-1234-cdef-567890123456",
"returnCode": "0",
"returnMessage": "success"
}
}