disassociatePublicIpFromServerInstance

Prev Next

Can be used in a VPC environment.

Overview

Unassign the Public IP instance from the server instance.

Request

Request parameter

Parameter Name Required Status Type Restrictions Description
regionCode No String Region Code
You can decide the region of the Public IP instance to be unassigned from the server instance.
The regionCode can be obtained through the getRegionList action.
Default: Select the first region of the getRegionList query results.
publicIpInstanceNo Conditional String The number of the Public IP instance
This determines the number of the Public IP instance to be unassigned from the server instance.
Either publicIpInstanceNo or serverInstanceNo must be entered.
The publicIpInstanceNo can be obtained through the getPublicIpInstanceList action.
serverInstanceNo Conditional String Server instance number
This determines the server instance that will unassign the Public IP instance.
Either publicIpInstanceNo or serverInstanceNo must be entered.
The serverInstanceNo can be obtained through the getServerInstanceList action.
responseFormatType No String Format type for the response result
Options : xml | json
Default : xml

Response

Response data type

  • PublicIpInstanceList type
PublicIpInstanceList extends CommonResponse
private Integer totalRows;
private List<PublicIpInstance> publicIpInstanceList = new ArrayList<>();
PublicIpInstance
private String publicIpInstanceNo;
private String publicIp;
private String publicIpDescription;
private Date createDate;
private String publicIpInstanceStatusName;
private CommonCode publicIpInstanceStatus;
private String serverInstanceNo;
private String serverName;
private String privateIp;
private Date lastModifyDate;
private CommonCode publicIpInstanceOperation;

Example

Request example

ncloud vserver disassociatePublicIpFromServerInstance --regionCode KR --publicIpInstanceNo ***7551

Response example

<disassociatePublicIpFromServerInstanceResponse>
  <requestId>bb66616c-3de6-4fb9-9ff0-823249d4e488</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <publicIpInstanceList>
    <publicIpInstance>
      <publicIpInstanceNo>***7551</publicIpInstanceNo>
      <publicIp>***.***.111.215</publicIp>
      <publicIpDescription></publicIpDescription>
      <createDate>2020-08-19T16:52:50+0900</createDate>
      <publicIpInstanceStatusName>Configuring</publicIpInstanceStatusName>
      <publicIpInstanceStatus>
        <code>RUN</code>
        <codeName>run</codeName>
      </publicIpInstanceStatus>
      <serverInstanceNo></serverInstanceNo>
      <serverName></serverName>
      <privateIp></privateIp>
      <publicIpInstanceOperation>
        <code>SET</code>
        <codeName>SETTING OP</codeName>
      </publicIpInstanceOperation>
    </publicIpInstance>
  </publicIpInstanceList>
</disassociatePublicIpFromServerInstanceResponse>