detachNetworkInterface

Prev Next

Can be used in a VPC environment.

Overview

Unassign network interface from the server instance. The default network interface of server instance can't be unassigned.

Request

Request parameter

Parameter Name Required Status Type Restrictions Description
regionCode No String Region Code
You can decide the region of the network interface to be released.
The regionCode can be obtained through the getRegionList action.
Default: Select the first region of the getRegionList query results.
subnetNo Yes String Subnet number
This determines the subnet of the network interface to be released.
The subnetNo can be obtained through the getSubnetList action.
networkInterfaceNo Yes String The number of the network interface to be released
The networkInterfaceNo can be obtained through the getNetworkInterfaceList action.
serverInstanceNo Yes String Server instance number
This determines the server instance in which the network interface will be released.
The serverInstanceNo can be obtained through the getServerInstanceList action.

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<>();

Example

Request example

ncloud vserver detachNetworkInterface --regionCode KR --subnetNo ***43 --networkInterfaceNo ***87 --serverInstanceNo ***4299

Response example

<detachNetworkInterfaceResponse>
  <requestId>49ab504e-5b11-402e-9933-9f8ce7911d30</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <networkInterfaceList>
    <networkInterface>
      <networkInterfaceNo>***87</networkInterfaceNo>
      <networkInterfaceName>test-***</networkInterfaceName>
      <subnetNo>***43</subnetNo>
      <deleteOnTermination>false</deleteOnTermination>
      <isDefault>false</isDefault>
      <deviceName>eth1</deviceName>
      <networkInterfaceStatus>
        <code>UNSET</code>
        <codeName>unset</codeName>
      </networkInterfaceStatus>
      <instanceType>
        <code>VSVR</code>
        <codeName>Server (VPC)</codeName>
      </instanceType>
      <instanceNo>***4299</instanceNo>
      <ip>***.***.1.7</ip>
      <macAddress>F2:20:***:***:8A:F5</macAddress>
      <accessControlGroupNoList/>
      <networkInterfaceDescription></networkInterfaceDescription>
      <secondaryIpList></secondaryIpList>
    </networkInterface>
  </networkInterfaceList>
</detachNetworkInterfaceResponse>