getLoadBalancerListenerList

Prev Next

Available in VPC

Get the list of listeners registered with a load balancer.

Syntax

The getLoadBalancerListenerList syntax is as follows:

./ncloud vloadbalancer getLoadBalancerListenerList \
    --loadBalancerInstanceNo <load-balancer-instance-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getLoadBalancerListenerList.

Required options

The following options are required for getLoadBalancerListenerList.

Options Type Required Description
--loadBalancerInstanceNo String Required Load balancer instance 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 listeners is successful, the configuration information for each listener is returned.

Command

The command example is as follows:

./ncloud vloadbalancer getLoadBalancerListenerList \
    --loadBalancerInstanceNo 41112223 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getLoadBalancerListenerListResponse": {
    "totalRows": 2,
    "loadBalancerListenerList": [
      {
        "loadBalancerInstanceNo": "41112223",
        "loadBalancerListenerNo": "60001111",
        "protocolType": {
          "code": "HTTP",
          "codeName": "HTTP protocol"
        },
        "port": 80,
        "useHttp2": false,
        "sslCertificateNo": "",
        "tlsMinVersionType": {},
        "loadBalancerRuleNoList": [
          "70001111"
        ],
        "cipherSuiteList": []
      },
      {
        "loadBalancerInstanceNo": "41112223",
        "loadBalancerListenerNo": "60002222",
        "protocolType": {
          "code": "HTTP",
          "codeName": "HTTP protocol"
        },
        "port": 8080,
        "useHttp2": false,
        "sslCertificateNo": "",
        "tlsMinVersionType": {},
        "loadBalancerRuleNoList": [
          "70002222"
        ],
        "cipherSuiteList": []
      }
    ],
    "requestId": "c9d0e1f2-a3b4-5678-cdef-901234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}