Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

unassignSecondaryIps

Prev Next

VPC 환경에서 이용 가능합니다.

개요

네트워크 인터페이스에 할당된 보조 IP를 해제합니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
regionCode No String - 리전 코드
보조 IP를 할당 해제할 네트워크 인터페이스의 리전(Region) 결정 가능
regionCode는 getRegionList 액션을 통해 획득 가능
Default : getRegionList 조회 결과의 첫 번째 리전을 선택
networkInterfaceNo Yes String - 보조 IP를 할당 해제할 네트워크 인터페이스 번호
networkInterfaceNo는 getNetworkInterfaceList 액션을 통해 획득 가능
secondaryIpList.N Yes List<String> - 할당 해제할 보조 IP 리스트
네트워크 인터페이스에 할당되어 있는 secondaryIp는 getNetworkInterfaceList 액션을 통해 획득 가능
ex) secondaryIpList.1=192.168.0.1&secondaryIpList.2=192.168.0.2
할당되어 있지 않은 IP 해제시 오류 발생하지 않음

응답

응답 데이터 타입

  • NetworkInterfaceList 타입
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<>();

예시

요청 예시

ncloud vserver unassignSecondaryIps --regionCode KR --networkInterfaceNo ***87 --secondaryIpList ***.***.1.8

응답 예시

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