associatePublicIpWithServerInstance
    • PDF

    associatePublicIpWithServerInstance

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Assign public IP instances to a server instance.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    You can decide the region of the public IP instance to be assigned to a server instance.
    You can obtain regionCode through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    publicIpInstanceNoYesString- Public IP instance number
    Determines the public IP instance number to be assigned to a server instance.
    You can obtain publicIpInstanceNo through the getPublicIpInstanceList action.
    serverInstanceNoYesString- Server instance number
    Determines the server instance to which the public IP instance will be assigned.
    You can obtain serverInstanceNo through the getServerInstanceList action.
    responseFormatTypeNoString- Format type of the response result
    Options: xml | json
    Default: xml

    Response

    Response body

    Examples

    Request examples

    GET {API_URL}/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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.