--- title: "createPublicIpInstance" slug: "cli-server-createpublicipinstance" tags: ["Server"] updated: 2026-09-17T10:08:35Z published: 2026-09-17T10:08:35Z canonical: "cli.ncloud-docs.com/cli-server-createpublicipinstance" --- > ## 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. # createPublicIpInstance ## Overview Creating a public IP instance ## Description Create a public IP instance. ## Request Parameters | Parameter Name | Requiredness | Type | Limitation | Description | | --- | --- | --- | --- | --- | | serverInstanceNo | No | String | | Server instance No. to assign after creating a public IP You can get one by calling getPublicIpTargetServerInstanceList. | | publicIpDescription | No | String | Min : 10, Max : 1000 | Public IP description | | regionNo | No | String | | You can reach a state in which input is possible by calling getRegionList. | | zoneNo | No | String | | You can decide a zone where Public IP are created. You can get one by calling getZoneList. Default : Select the first Zone in the specific region | ## Response Data Type - PublicIpInstanceList type | PublicIpInstanceList extends CommonResponse | | --- | | private Integer totalRows; | | private List publicIpInstanceList = new ArrayList(); | | PublicIpInstance | | --- | | private String publicIpInstanceNo; | | private String publiclIp; | | private String publicIpDescription; | | private Date createDate; | | private String publicIpInstanceStatusName; | | private CommonCode publicIpInstanceStatus; | | private CommonCode publicIpInstanceOperation; | | private CommonCode publicIpKindType; | | private ServerInstance serverInstanceAssociatedWithPublicIp; | | private Region region; | | private Zone zone; | ## Examples ### Request ``` ncloud server createPublicIpInstance --serverInstanceNo 397255 ``` ### Response ``` { "createPublicIpInstanceResponse": { "requestId": "a2719e72-1709-48ac-acfe-d0d9197431e3", "returnCode": "0", "returnMessage": "success", "totalRows": 1, "publicIpInstanceList": [ { "publicIpInstanceNo": "397266", "publicIp": "192.168.60.126", "publicIpDescription": "", "createDate": "2018-02-23T14:10:01+0900", "publicIpInstanceStatusName": "using", "publicIpInstanceStatus": { "code": "CREAT", "codeName": "NET CREAT State" }, "publicIpInstanceOperation": { "code": "USE", "codeName": "NET USE OP" }, "publicIpKindType": { "code": "GEN", "codeName": "General" }, "serverInstanceAssociatedWithPublicIp": { "serverInstanceNo": "397255", "serverName": "ncloud-mktest", "serverDescription": "", "cpuCount": 1, "memorySize": 2147483648, "baseBlockStorageSize": 53687091200, "platformType": { "code": "LNX64", "codeName": "Linux 64 Bit" }, "loginKeyName": "ysw", "isFeeChargingMonitoring": false, "publicIp": "192.168.60.126", "privateIp": "10.113.245.112", "serverImageName": "centos-7.3-64", "serverInstanceStatus": { "code": "RUN", "codeName": "Server RUN State" }, "serverInstanceOperation": { "code": "NULL", "codeName": "Server NULL OP" }, "serverInstanceStatusName": "running", "createDate": "2018-02-23T13:55:34+0900", "uptime": "2018-02-23T13:58:34+0900", "serverImageProductCode": "SPSW0LINUX000046", "serverProductCode": "SPSVRSTAND000003", "isProtectServerTermination": false, "portForwardingPublicIp": "192.168.120.111", "zone": { "zoneNo": "2", "zoneName": "KR-1", "zoneDescription": "KR-1 zone" }, "region": { "regionNo": "1", "regionCode": "KR", "regionName": "Korea" }, "baseBlockStorageDiskType": { "code": "NET", "codeName": "Network Storage" }, "baseBlockStroageDiskDetailType": { "code": "HDD", "codeName": "HDD" }, "userData": "", "accessControlGroupList": [ { "accessControlGroupConfigurationNo": "1038", "accessControlGroupName": "ncloud-default-acg", "accessControlGroupDescription": "Default AccessControlGroup", "isDefault": true, "createDate": "2013-12-03T10:37:39+0900" } ], "instanceTagList" : [], }, "zone": { "zoneNo": "2", "zoneName": "KR-1", "zoneCode": "KR-1", "zoneDescription": "KR-1 zone", "regionNo" : "1" } } ] } } ``` ``` a2719e72-1709-48ac-acfe-d0d9197431e3 0 success 1 397266 192.168.60.126 2018-02-23T14:10:01+0900 using CREAT NET CREAT State USE NET USE OP GEN General 397255 ncloud-mktest 1 2147483648 53687091200 LNX64 Linux 64 Bit ysw false 192.168.60.126 10.113.245.112 centos-7.3-64 RUN Server RUN State NULL Server NULL OP running 2018-02-23T13:55:34+0900 2018-02-23T13:58:34+0900 SPSW0LINUX000046 SPSVRSTAND000003 false 192.168.120.111 2 KR-1 KR-1 zone 1 KR Korea NET Network Storage HDD HDD 1038 ncloud-default-acg Default AccessControlGroup true 2013-12-03T10:37:39+0900 2 KR-1 KR-1 KR-1 zone 1 ```