recreateServerInstance

Prev Next

Overview

Recreate a server instance. This API is for the Bare Metal product only.

Request

Request parameters

Parameter name Required Type Restrictions Description
serverInstanceNo Yes String It can't be duplicated. - Instance number to recreate
serverInstanceNo can be obtained through the getServerInstanceList action.
serverInstanceName No String - Name to change when recreating
Default: It is created with the original server name.
serverImageProductCode Yes String - Server image product code
Only bare metal server images can be entered.
The serverImageProductCode for bare metal products can be obtained through the getServerImageProductList action.
userData No String Min: 1, Max: 21847 User data
instanceTagList.N.tagKey No List<String> - Tag value of the instance to create
You can search for an instance through the instance's tag key.
TagKey of the instance can be obtained through the getInstanceTagList action.
e.g., instanceTagList.1.tagKey=tag1
instanceTagList.N.tagValue No List<String> - The tag value of the instance to create
You can search for an instance through the instance's tag value.
TagValue of the instance can be obtained through the getInstanceTagList action.
e.g., instanceTagList.1.tagValue=value1
responseFormatType No String - Response result's format type
Options: xml | json
Default: xml

Response

Response body

Examples

Request example

GET {SERVER_API_URL}/recreateServerInstance
?serverInstanceNo=937507
&serverImageProductCode=SPSWBMWINNT00001

Response example

<recreateServerInstanceResponse>
   <requestId>d449a2eb-60a2-4e63-b8a9-f20edec8a98c</requestId>
   <returnCode>0</returnCode>
   <returnMessage>success</returnMessage>
   <totalRows>1</totalRows>
   <serverInstanceList>
      <serverInstance>
         <serverInstanceNo>680744</serverInstanceNo>
         <serverName>penguin-window</serverName>
         <serverDescription />
         <cpuCount>20</cpuCount>
         <memorySize>137438953472</memorySize>
         <baseBlockStorageSize>4123168604160</baseBlockStorageSize>
         <platformType>
            <code>WND64</code>
            <codeName>Windows 64 Bit</codeName>
         </platformType>
         <loginKeyName>yoon-nang-onlinetest03-newbeta</loginKeyName>
         <isFeeChargingMonitoring>false</isFeeChargingMonitoring>
         <publicIp />
         <privateIp>10.39.64.12</privateIp>
         <serverImageName>win-2016-64-en</serverImageName>
         <serverInstanceStatus>
            <code>INIT</code>
            <codeName>Server init state</codeName>
         </serverInstanceStatus>
         <serverInstanceOperation>
            <code>NULL</code>
            <codeName>Server NULL OP</codeName>
         </serverInstanceOperation>
         <serverInstanceStatusName>init</serverInstanceStatusName>
         <createDate>2018-05-30T02:12:13+0000</createDate>
         <uptime>2018-05-30T02:12:13+0000</uptime>
         <serverImageProductCode>SPSWBMWINNT00001</serverImageProductCode>
         <serverProductCode>SPSVRBM000000001</serverProductCode>
         <isProtectServerTermination>false</isProtectServerTermination>
         <portForwardingPublicIp>49.236.160.11</portForwardingPublicIp>
         <portForwardingExternalPort>30006</portForwardingExternalPort>
         <portForwardingInternalPort>3389</portForwardingInternalPort>
         <zone>
            <zoneNo>2</zoneNo>
            <zoneName>KR-1</zoneName>
            <zoneDescription>Gasan zone</zoneDescription>
         </zone>
         <region>
            <regionNo>1</regionNo>
            <regionCode>KR</regionCode>
            <regionName>Korea</regionName>
         </region>
         <baseBlockStorageDiskType>
            <code>LOCAL</code>
            <codeName>Local storage</codeName>
         </baseBlockStorageDiskType>
         <baseBlockStorageDiskDetailType>
            <code>SSD</code>
            <codeName>SSD</codeName>
         </baseBlockStorageDiskDetailType>
         <serverInstanceType>
            <code>BM</code>
            <codeName>BareMetal</codeName>
         </serverInstanceType>
         <userData>#powershell
invoke-WebRequest http://125.209.192.32/ms-test/naver_download.ps1 -OutFile C:\Windows\Temp\naver_download.ps1
C:\Windows\Temp\naver_download.ps1</userData>
         <initScriptNo>4721</initScriptNo>
         <accessControlGroupList>
            <accessControlGroup>
               <accessControlGroupConfigurationNo>17791</accessControlGroupConfigurationNo>
               <accessControlGroupName>yoon-test</accessControlGroupName>
               <accessControlGroupDescription>ttADFEDFDFD</accessControlGroupDescription>
               <isDefault>false</isDefault>
               <createDate>2017-09-19T02:52:24+0000</createDate>
            </accessControlGroup>
         </accessControlGroupList>
      </serverInstance>
   </serverInstanceList>
</recreateServerInstanceResponse>