--- title: "disassociatePublicIpFromServerInstance" slug: "cli-vserver-publicip-disassociatepublicipfromserverinstance" tags: ["VPC", "Server"] updated: 2026-09-17T10:08:35Z published: 2026-09-17T10:08:35Z canonical: "cli.ncloud-docs.com/cli-vserver-publicip-disassociatepublicipfromserverinstance" --- > ## 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. # disassociatePublicIpFromServerInstance Available in VPC Remove the public IP address assigned to a server instance. ## Syntax The `disassociatePublicIpFromServerInstance` syntax is as follows: ``` ./ncloud vserver disassociatePublicIpFromServerInstance \ --publicIpInstanceNo | --serverInstanceNo \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `disassociatePublicIpFromServerInstance`. ### Required options The following options are required for `disassociatePublicIpFromServerInstance`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--publicIpInstanceNo` | String | Conditional | Public IP instance number - Enter `publicIpInstanceNo` or `serverInstanceNo`. - See [getPublicIpInstanceList](/docs/en/cli-vserver-publicip-getpublicipinstancelist). | | `--serverInstanceNo` | String | Conditional | Server instance number - Enter `publicIpInstanceNo` or `serverInstanceNo`. - See [getServerInstanceList](/docs/en/cli-vserver-server-getserverinstancelist). | ### Common options For information about the options common to all `vserver` subcommands, see [Server (VPC) options](/docs/en/cli-vserver#%EC%98%B5%EC%85%98). ## Examples If the request to remove a public IP is successful, the configuration information for the public IP and the information about the server from which it was removed will be returned. ### Command The command example is as follows: ``` ./ncloud vserver disassociatePublicIpFromServerInstance \ --publicIpInstanceNo 78901234 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "disassociatePublicIpFromServerInstanceResponse": { "totalRows": 1, "publicIpInstanceList": [ { "publicIpInstanceNo": "78901234", "publicIp": "203.0.113.10", "publicIpDescription": "Test public IP", "createDate": "2026-05-14T19:53:38+0900", "publicIpInstanceStatusName": "Running", "publicIpInstanceStatus": { "code": "RUN", "codeName": "In operation" }, "serverInstanceNo": "34567892", "serverName": "public-test-server", "privateIp": "192.0.2.6", "publicIpInstanceOperation": { "code": "NULL", "codeName": "NULL OP" } } ], "requestId": "f6789012-3456-7890-f012-678901234567", "returnCode": "0", "returnMessage": "success" } } ```