createLoadBalancerInstance
    • PDF

    createLoadBalancerInstance

    • PDF

    Article Summary

    Available in VPC

    Overview

    Creates load balancer instances.

    Requests

    Request parameters

    Parameter nameRequiredTypeService limitsDescription
    regionCodeNoString- Region code
    Determines the Region where the load balancer instance is to be created
    Obtain regionCode through the getRegionList action
    Default: Select the first region from getRegionList search results
    loadBalancerTypeCodeYesString- Load balancer type code
    Determines the load balancer type
    Options : APPLICATION | NETWORK | NETWORK_PROXY
    loadBalancerNameNoStringMin : 3, Max : 30
    Only letters, numbers, and hyphens (-) are allowed. Must begin with a letter,
    and must end with a letter or a number
    - Load balancer name
    Default: Automatically granted by NAVER Cloud Platform
    loadBalancerNetworkTypeCodeNoString- Load balancer network type code
    Options : PUBLIC | PRIVATE
    Default : PUBLIC
    throughputTypeCodeNoString- Load processing performance type code
    APPLICATION, NETWORK_PROXY types
    Options : SMALL | MEDIUM | LARGE
    Default : SMALL

    NETWORK type
    Options : DYNAMIC
    Default : DYNAMIC
    idleTimeoutNoIntegerMin: 1, Max: 3600 (seconds)- Connection hold time
    Valid only if the load balancer type is not NETWORK
    Default: 60 (seconds)
    vpcNoYesString- VPC number
    Determines the VPC where the load balancer instance is to be created
    Obtain vpcNo through the getVpcList action
    loadBalancerDescriptionNoStringDescription of the load balancer instance to be created
    subnetNoList.NConditionalList<String>- List of the subnet numbers
    Either subnetNoList or loadBalancerSubnetList must be entered
    loadBalancerSubnetList is applied when sending both subnetNoList and loadBalancerSubnetList
    Select the subnet located in the selected VPC
    One dedicated subnet for load balancer can be selected per zone
    subnetNo can be obtained through the getSubnetList action
    ex) subnetNoList.1=1234&subnetNoList.2=2345
    loadBalancerSubnetList.N.subnetNoConditionalString- Subnet number
    Either subnetNoList or loadBalancerSubnetList must be entered
    loadBalancerSubnetList is applied when sending both subnetNoList and loadBalancerSubnetList
    When loadBalancerSubnetList is applied, loadBalancerSubnetList.N.subnetNo is required
    Select the subnet located in the selected VPC
    One dedicated subnet for load balancer can be selected per zone
    subnetNo can be obtained through the getSubnetList action
    loadBalancerSubnetList.N.publicIpInstanceNoNoString- Public IP instance number
    Valid only if loadBalancerNetworkTypeCode is PUBLIC
    Available only in the SGN (Singapore) Region
    Default: Assign by creating a new public IP
    loadBalancerListenerList.N.protocolTypeCodeNoString- Load balancer listener protocol type code
    Available types of listener protocols and default value are determined by the load balancer type
    APPLICATION : HTTP (Default) / HTTPS
    NETWORK : TCP (Default) / UDP
    NETWORK_PROXY : TCP (Default) / TLS
    UDP protocol is available only in the SGN (Singapore) Region
    loadBalancerListenerList.N.portNoIntegerMin : 1, Max : 65534- Load balancer listener port
    The default port value is determined by the listener protocol type
    Default :
    HTTP / TCP / UDP : 80
    HTTPS / TLS : 443
    Port numbers cannot be duplicated
    loadBalancerListenerList.N.targetGroupNoYesString- Target group number
    Selected target group applies to each listener's DEFAULT rule
    You cannot use a target group already in use by other load balancers
    Available target group is limited by the load balancer type and target group protocol type
    NETWORK : TCP \ UDP
    NETWORK_PROXY : PROXY_TCP
    APPLICATION : HTTP / HTTPS
    Obtain targetGroupNo through the getTargetGroupList action
    loadBalancerListenerList.N.useHttp2NoBoolean- HTTP/2 protocol usage status
    Options : true | false
    Default : false
    Valid only if the listener protocol type is HTTPS
    loadBalancerListenerList.N.sslCertificateNoConditionalString- SSL certificate number
    If the listener protocol type is either HTTPS or TLS, you must set the SSL certificate
    Obtain the sslCertificateNo through the GET https://certificatemanager.apigw.ntruss.com/api/v1/certificates action
    loadBalancerListenerList.N.tlsMinVersionTypeCodeNoString- Minimum support version type code of TLS
    Valid only if the listener protocol type is either HTTPS or TLS
    Options :
    TLSV10 (TLSv1.0)
    TLSV11 (TLSv1.1)
    TLSV12 (TLSv1.2)
    Default : TLSV10
    loadBalancerListenerList.N.cipherSuiteList.NNoList<String>- Cipher suite list
    Load balancer selects the encryption functions to provide in encryption negotiation with the client
    Valid only if the listener protocol type is HTTPS/TLS
    Options :
    TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
    TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
    TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
    TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
    TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
    TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
    TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
    TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
    TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
    TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
    TLS_RSA_WITH_AES_128_CBC_SHA
    TLS_RSA_WITH_AES_128_CBC_SHA256
    TLS_RSA_WITH_AES_128_GCM_SHA256
    TLS_RSA_WITH_AES_256_CBC_SHA
    TLS_RSA_WITH_AES_256_CBC_SHA256
    TLS_RSA_WITH_AES_256_GCM_SHA384
    TLS_DHE_RSA_WITH_AES_128_CBC_SHA
    TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
    TLS_DHE_RSA_WITH_AES_256_CBC_SHA
    TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
    Default : Select All
    responseFormatTypeNoString- Format type of the responses result
    Options : xml | json
    Default : xml

    Responses

    Responses data type

    • LoadBalancerInstanceList type
    LoadBalancerInstanceList extends CommonResponse
    private Integer totalRows;
    private List loadBalancerInstanceList = new ArrayList<>();
    LoadBalancerInstance
    private String loadBalancerInstanceNo;
    private CommonCode loadBalancerInstanceStatus;
    private CommonCode loadBalancerInstanceOperation;
    private String loadBalancerInstanceStatusName;
    private String loadBalancerDescription;
    private Date createDate;
    private String loadBalancerName;
    private String loadBalancerDomain;
    private LoadBalancerIpList loadBalancerIpList;
    private CommonCode loadBalancerType;
    private CommonCode loadBalancerNetworkType;
    private CommonCode throughputType;
    private Integer idleTimeout;
    private String vpcNo;
    private String regionCode;
    private SubnetNoList subnetNoList;
    private List<LoadBalancerSubnet> loadBalancerSubnetList;
    private LoadBalancerListenerNoList loadBalancerListenerNoList;
    LoadBalancerIpList
    private List loadBalancerIpList = new ArrayList<>();
    SubnetNoList
    private List subnetNoList = new ArrayList<>();
    LoadBalancerSubnet
    private String zoneCode;
    private String subnetNo;
    private String publicIpInstanceNo;
    LoadBalancerListenerNoList
    private List loadBalancerListenerNoList = new ArrayList<>();

    Examples

    Request examples

    ncloud vloadbalancer createLoadBalancerInstance --regionCode KR --loadBalancerTypeCode APPLICATION --loadBalancerName test-*** --loadBalancerNetworkTypeCode PRIVATE --throughputTypeCode SMALL --idleTimeout 60 --vpcNo ***04 --subnetNoList ***43 --loadBalancerListenerList "protocolTypeCode='HTTP', port='80', targetGroupNo='***095'"
    

    Response examples

    <createLoadBalancerInstanceResponse>
      <requestId>959a2fe5-fd1b-459a-9af3-df0e51b68e1d</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <loadBalancerInstanceList>
        <loadBalancerInstance>
          <loadBalancerInstanceNo>***887</loadBalancerInstanceNo>
          <loadBalancerInstanceStatus>
            <code>INIT</code>
            <codeName>LB INIT state</codeName>
          </loadBalancerInstanceStatus>
          <loadBalancerInstanceOperation>
            <code>CREAT</code>
            <codeName>LB CREATE OP</codeName>
          </loadBalancerInstanceOperation>
          <loadBalancerInstanceStatusName>Creating</loadBalancerInstanceStatusName>
          <loadBalancerDescription></loadBalancerDescription>
          <createDate>2020-12-20T19:21:02+0900</createDate>
          <loadBalancerName>test-***</loadBalancerName>
          <loadBalancerDomain>test-***-***887-***.com</loadBalancerDomain>
          <loadBalancerIpList>
            <loadBalancerIp>***.***.5.6</loadBalancerIp>
          </loadBalancerIpList>
          <loadBalancerType>
            <code>APPLICATION</code>
            <codeName>Application Load Balancer</codeName>
          </loadBalancerType>
          <loadBalancerNetworkType>
            <code>PRIVATE</code>
            <codeName>Private</codeName>
          </loadBalancerNetworkType>
          <throughputType>
            <code>SMALL</code>
            <codeName>Small</codeName>
          </throughputType>
          <idleTimeout>60</idleTimeout>
          <vpcNo>***04</vpcNo>
          <regionCode>KR</regionCode>
          <subnetNoList>
            <subnetNo>***43</subnetNo>
          </subnetNoList>
          <loadBalancerSubnetList>
            <loadBalancerSubnet>
              <zoneCode>KR-1</zoneCode>
              <subnetNo>***43</subnetNo>
              <publicIpInstanceNo/>
            </loadBalancerSubnet>
          </loadBalancerSubnetList>
          <loadBalancerListenerNoList>
            <loadBalancerListenerNo>***961</loadBalancerListenerNo>
          </loadBalancerListenerNoList>
        </loadBalancerInstance>
      </loadBalancerInstanceList>
    </createLoadBalancerInstanceResponse>
    

    Was this article helpful?

    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.