MENU
      setLoadBalancerInstanceSubnet

        setLoadBalancerInstanceSubnet


        Article summary

        Available in VPC

        Set a subnet for a load balancer. It configures subnets including the subnets already set. You can add subnets in different zones from the existing subnets.

        Request

        The following describes the request format for the endpoint. The request format is as follows:

        MethodURI
        GET/setLoadBalancerInstanceSubnet

        Request headers

        For headers common to all Load Balancer APIs, see Load Balancer common headers.

        Request query parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        regionCodeStringOptionalRegion code for the load balancer instance whose subnet settings you want to change
        • First Region of the getRegionList search result (default)
        • Check through getRegionList
        loadBalancerInstanceNoStringRequiredNumber of the load balancer instance
        subnetNoList.NList<String>RequiredSubnet number list
        • subnetNoList or loadBalancerSubnetList must be entered
          • loadBalancerSubnetList is applied when both are passed
        • Select a subnet located in the same VPC as the load balancer
        • You can select one dedicated load balancer subnet per zone, including subnets that are already configured
        • subnetNo can be obtained through getSubnetList
        • <E.g.> subnetNoList.1=1234&subnetNoList.2=2345
        loadBalancerSubnetList.N.subnetNoStringConditionalSubnet number
        • subnetNoList or loadBalancerSubnetList must be entered
          • loadBalancerSubnetList is applied when both are passed
        • loadBalancerSubnetList.N.subnetNo is required when applying loadBalancerSubnetList
        • Select a subnet located in the same VPC as the load balancer
        • One dedicated load balancer subnet can be selected per zone
        • subnetNo can be obtained through getSubnetList
        loadBalancerSubnetList.N.publicIpInstanceNoStringOptionalPublic IP instance number
        • Create and assign a new public IP (default)
        • It can be set if the load balancer's network type is PUBLIC
        • It is only available in the Singapore Region
        responseFormatTypeStringOptionalResponse result format
        • xml (default) | json

        Request example

        The following is a sample request.

        curl --location 'https://ncloud.apigw.ntruss.com/vloadbalancer/v2/setLoadBalancerInstanceSubnet
        ?regionCode=KR
        &loadBalancerInstanceNo=********
        &subnetNoList.1=******
        &subnetNoList.2=******'
        --header 'x-ncp-apigw-timestamp: {Timestamp}'
        --header 'x-ncp-iam-access-key: {Access Key}'
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        Response

        The following describes the response format.

        Response body

        See LoadBalancerInstanceList for the response body.

        Response status codes

        For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

        Response example

        The following is a sample response.

        <changeLoadBalancerInstanceConfigurationResponse>
            <requestId>32f4e6b9-6790-4c5b-83de-a84157bd6cd7</requestId>
            <returnCode>0</returnCode>
            <returnMessage>success</returnMessage>
            <totalRows>1</totalRows>
            <loadBalancerInstanceList>
                <loadBalancerInstance>
                    <loadBalancerInstanceNo>********</loadBalancerInstanceNo>
                    <loadBalancerInstanceStatus>
                        <code>USED</code>
                        <codeName>LB USED state</codeName>
                    </loadBalancerInstanceStatus>
                    <loadBalancerInstanceOperation>
                        <code>CHANG</code>
                        <codeName>LB CHANGE OP</codeName>
                    </loadBalancerInstanceOperation>
                    <loadBalancerInstanceStatusName>Changing</loadBalancerInstanceStatusName>
                    <loadBalancerDescription></loadBalancerDescription>
                    <createDate>2024-06-03T17:09:52+0900</createDate>
                    <loadBalancerName>YOUR_LOAD_BALANCER</loadBalancerName>
                    <loadBalancerDomain>***.com</loadBalancerDomain>
                    <loadBalancerIpList>
                        <loadBalancerIp>**.*.*.*</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>*****</vpcNo>
                    <regionCode>KR</regionCode>
                    <subnetNoList>
                        <subnetNo>******</subnetNo>
                        <subnetNo>******</subnetNo>
                    </subnetNoList>
                    <loadBalancerSubnetList>
                        <loadBalancerSubnet>
                            <zoneCode>KR-1</zoneCode>
                            <subnetNo>******</subnetNo>
                            <publicIpInstanceNo></publicIpInstanceNo>
                        </loadBalancerSubnet>
                        <loadBalancerSubnet>
                            <zoneCode>KR-2</zoneCode>
                            <subnetNo>******</subnetNo>
                            <publicIpInstanceNo></publicIpInstanceNo>
                        </loadBalancerSubnet>
                    </loadBalancerSubnetList>
                    <loadBalancerListenerNoList>
                        <loadBalancerListenerNo>******</loadBalancerListenerNo>
                    </loadBalancerListenerNoList>
                </loadBalancerInstance>
            </loadBalancerInstanceList>
        </changeLoadBalancerInstanceConfigurationResponse>
        XML

        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.