unassignSecondaryIps
- Print
- PDF
unassignSecondaryIps
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Remove the secondary IP assigned to a network interface.
Request
Request parameter
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - 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. | |
networkInterfaceNo | Yes | String | - Network interface number to remove secondary IP assignment You can obtain networkInterfaceNo through the getNetworkInterfaceList action. | |
secondaryIpList.N | Yes | List | - 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. | |
responseFormatType | No | String | - 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?