createPublicIpInstance
- Print
- PDF
createPublicIpInstance
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Creates public IP instances.
Request
Request parameter
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code Decides the region in which the public IP instance will be created. regionCode can be obtained through the getRegionList action. Default: Selects the first region of the getRegionList search results. | |
serverInstanceNo | No | String | - Server instance number Decides the server instance to which the created public IP instance will be assigned. serverInstanceNo can be obtained through the getServerInstanceList action. | |
publicIpDescription | No | String | Min : 0, Max : 1000 Bytes | Description of the public IP to be created |
responseFormatType | No | String | - Format type of 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; |
Examples
Request examples
ncloud vserver createPublicIpInstance --regionCode KR --serverInstanceNo ***4299
Response examples
<createPublicIpInstanceResponse>
<requestId>97f84e7a-f03d-4bce-9e7f-b3a83c812a3d</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:33:10+0900</createDate>
<publicIpInstanceStatusName>Creating</publicIpInstanceStatusName>
<publicIpInstanceStatus>
<code>INIT</code>
<codeName>init</codeName>
</publicIpInstanceStatus>
<serverInstanceNo>***4299</serverInstanceNo>
<serverName>test-***</serverName>
<privateIp>***.***.1.6</privateIp>
<publicIpInstanceOperation>
<code>CREAT</code>
<codeName>CREATE OP</codeName>
</publicIpInstanceOperation>
</publicIpInstance>
</publicIpInstanceList>
</createPublicIpInstanceResponse>
Was this article helpful?