getNetworkInterfaceList
    • PDF

    getNetworkInterfaceList

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Searches the list of network interfaces.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Determines the region to get the network interface list from.
    regionCode can be obtained through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    subnetNameNoString- Subnet number
    You can search by filtering with the subnet name to get the network interface list from.
    networkInterfaceNoList.NNoList- List of network interface numbers
    You can search by filtering with network interface number.
    networkInterfaceNo can be obtained through the getNetworkInterfaceList action.
    ex) --networkInterfaceNoList 1234 2345
    networkInterfaceNameNoString- Network interface name
    You can search by filtering with network interface name.
    networkInterfaceStatusCodeNoStringNetwork interface status code
    Options : SET | UNSET | USED | NOTUSED
    ipNoString- IP address
    You can search by filtering with the IP address assigned to the network interface.
    secondaryIpList.NNoList- List of secondary IPs
    You can search by filtering with the secondary IP address assigned to the network interface.
    secondaryIp assigned to the network interface can be obtained through the getNetworkInterfaceList action.
    ex) secondaryIpList.1=192.168.0.1&secondaryIpList.2=192.168.0.2
    instanceNoNoString- Instance number
    You can search by filtering with the instance number of the device to which the network device is assigned.
    instanceNo can be obtained through the get action corresponding to instanceType.
    isDefaultNoBoolean- Default status
    You can search by filtering with the network interface's default status.
    Options : true | false
    deviceNameNoString- Device name
    You can search by filtering with the Ethernet name on the device to which the network device is assigned.
    Options : eth0 | eth1 | eth2
    serverNameNoString- Server name
    You can search by filtering with the server name to which the network interface is assigned.
    pageNoNoInteger- Page number of the paged results
    The results can be paged using pageNo and pageSize.
    pageSizeConditionalInteger- Size of each page to be displayed when paging
    The results can be paged using pageNo and pageSize.
    Entering this information is required when pageNo is entered.

    Response

    Response data type

    • NetworkInterfaceList type
    NetworkInterfaceList extends CommonResponse
    private Integer totalRows;
    private List<NetworkInterface> networkInterfaceList = new ArrayList<>();
    NetworkInterface
    private String networkInterfaceNo;
    private String networkInterfaceName;
    private String subnetNo;
    private Boolean deleteOnTermination;
    private Boolean isDefault;
    private String deviceName;
    private CommonCode networkInterfaceStatus;
    private CommonCode instanceType;
    private String instanceNo;
    private String ip;
    private String macAddress;
    private AccessControlGroupNoList accessControlGroupNoList;
    private String networkInterfaceDescription;
    private SecondaryIpList secondaryIpList;
    SecondaryIpList
    private List<String> secondaryIpList = new ArrayList<>();

    Examples

    Request examples

    ncloud vserver getNetworkInterfaceList --regionCode KR --subnetName test-*** --networkInterfaceNoList ***87 ***88 --networkInterfaceName test-*** --networkInterfaceStatusCode USED --ip ***.***.1.6 --secondaryIpList ***.***.1.7 --instanceNo ***4299 --isDefault ture --deviceName eth0 --serverName test-***
    

    Response examples

    <getNetworkInterfaceListResponse>
      <requestId>73caedc4-073d-4001-a363-efedd90831be</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <networkInterfaceList>
        <networkInterface>
          <networkInterfaceNo>***87</networkInterfaceNo>
          <networkInterfaceName>test-***</networkInterfaceName>
          <subnetNo>***43</subnetNo>
          <deleteOnTermination>true</deleteOnTermination>
          <isDefault>true</isDefault>
          <deviceName>eth0</deviceName>
          <networkInterfaceStatus>
            <code>USED</code>
            <codeName>used </codeName>
          </networkInterfaceStatus>
          <instanceType>
            <code>VSVR</code>
            <codeName>Server (VPC)</codeName>
          </instanceType>
          <instanceNo>***4299</instanceNo>
          <ip>***.***.1.6</ip>
          <macAddress>F2:20:***:***:8A:F5</macAddress>
          <accessControlGroupNoList>
            <accessControlGroupNo>***63</accessControlGroupNo>
          </accessControlGroupNoList>
          <networkInterfaceDescription></networkInterfaceDescription>
          <secondaryIpList>
            <secondaryIp>***.***.1.7</secondaryIp>
          </secondaryIpList>
        </networkInterface>
      </networkInterfaceList>
    </getNetworkInterfaceListResponse>
    

    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.