unassignSecondaryIps
    • PDF

    unassignSecondaryIps

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Remove the secondary IP assigned to a network interface.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    You can decide the region of the network interface to remove the assignment of secondary IPs.
    You can obtain regionCode through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    networkInterfaceNoYesString- Network interface number to remove secondary IP assignment
    You can obtain networkInterfaceNo through the getNetworkInterfaceList action.
    secondaryIpList.NYesList- List of secondary IPs to remove assignment
    You can obtain secondaryIp assigned to the network interface through the getNetworkInterfaceList action.
    E.g., 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.
    responseFormatTypeNoString- Format type of the response result
    Options: xml | json
    Default: xml

    Response

    Response body

    Examples

    Request examples

    GET {API_URL}/unassignSecondaryIps
    ?regionCode=KR
    &networkInterfaceNo=***87
    &secondaryIpList.1=***.***.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>
    

    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.