unassignSecondaryIps

Prev Next

Can be used in a VPC environment.

Overview

Removes the secondary IPs assigned to network interfaces.

Request

Request parameter

Parameter name Requirement status Type Restrictions Description
regionCode No String - Region code
Determines the region of the network interface to remove the assignment of secondary IPs from.
regionCode can be obtained through the getRegionList action.
Default: Selects the first region of the getRegionList search results.
networkInterfaceNo Yes String - Number of network interface to remove secondary IP assignment from
networkInterfaceNo can be obtained through the getNetworkInterfaceList action.
secondaryIpList.N Yes List - List of secondary IPs to remove from assignment
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
Removing assignment of IP that is not assigned will not incur an error.

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 unassignSecondaryIps --regionCode KR --networkInterfaceNo ***87 --secondaryIpList ***.***.1.8

Response examples

<unassignSecondaryIpsResponse>
  <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>
</unassignSecondaryIpsResponse>