associatePublicIpWithServerInstance
- Print
- PDF
associatePublicIpWithServerInstance
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Assigns public IP instances to server instances.
Request
Request parameter
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code Decides the region of the public IP instance to be assigned to server instances. regionCode can be obtained through the getRegionList action. Default: Selects the first region of the getRegionList search results. | |
publicIpInstanceNo | Yes | String | - Public IP instance number Determines the public IP instance number to be assigned to server instances. publicIpInstanceNo can be obtained through the getPublicIpInstanceList action. | |
serverInstanceNo | Yes | String | - Server instance number Determines the server instance to which the public IP instance will be assigned. serverInstanceNo can be obtained through the getServerInstanceList action. | |
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 associatePublicIpWithServerInstance --regionCode KR --publicIpInstanceNo ***7551 --serverInstanceNo ***4299
Response examples
<associatePublicIpWithServerInstanceResponse>
<requestId>18f578d6-9264-4b6d-8203-9d89c49cf85e</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>***4299</serverInstanceNo>
<serverName>test-***</serverName>
<privateIp>***.***.1.6</privateIp>
<publicIpInstanceOperation>
<code>SET</code>
<codeName>SETTING OP</codeName>
</publicIpInstanceOperation>
</publicIpInstance>
</publicIpInstanceList>
</associatePublicIpWithServerInstanceResponse>
Was this article helpful?