changeServerInstanceSpec
    • PDF

    changeServerInstanceSpec

    • PDF

    Article Summary

    Available in VPC

    Overview

    Changes the specifications of stopped server instance (VM).

    Requests

    Request parameters

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Decides the Region of the server instance whose specification will be changed
    regionCode can be obtained through the getRegionList action
    Default: select the first Region shown in the getRegionList search results
    serverInstanceNoYesString- The number of the server instance whose specification will be changed
    serverInstanceNo can be obtained through the getServerInstanceList action
    serverProductCodeConditionalString- Server product code
    Choose the server specifications you want to change to
    It can only be changed within the same product type (productType) and the same disk detail type (diskDetailType [HDD, SSD]) among server products
    serverProductCode can be obtained through the getServerProductList action
    serverSpecCodeConditionalString- Server specification code
    Choose the server specifications you want to change to
    It can only be changed within the same product type (productType) and the same disk detail type (diskDetailType [HDD, SSD]) among server products
    serverSpecCode can be obtained through the getServerSpecList action
    The value of either serverProductCode or serverSpecCode is required.
    responseFormatTypeNoString- Format type of responses
    Options : xml | json
    Default : xml

    Responses

    Response data type

    • ServerInstanceList type
    ServerInstanceList extends CommonResponse
    private Integer totalRows;
    private List<ServerInstance> serverInstanceList = new ArrayList<>();
    ServerInstance
    private String serverInstanceNo;
    private String serverName;
    private String serverDescription;
    private Integer cpuCount;
    private Long memorySize;
    private CommonCode platformType;
    private String loginKeyName;
    private String publicIpInstanceNo;
    private String publicIp;
    private CommonCode serverInstanceStatus;
    private CommonCode serverInstanceOperation;
    private String serverInstanceStatusName;
    private Date createDate;
    private Date uptime;
    private String serverImageProductCode;
    private String serverProductCode;
    private Boolean isProtectServerTermination;
    private String zoneCode;
    private String regionCode;
    private String vpcNo;
    private String subnetNo;
    private NetworkInterfaceNoList networkInterfaceNoList;
    private String initScriptNo;
    private CommonCode serverInstanceType;
    private CommonCode baseBlockStorageDiskType;
    private CommonCode baseBlockStorageDiskDetailType;
    private String placementGroupNo;
    private String placementGroupName;
    private String memberServerImageInstanceNo;

    Examples

    Request examples

    ncloud vserver changeServerInstanceSpec --regionCode KR --serverInstanceNo ***4299 --serverProductCode SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G001
    

    Response examples

    <changeServerInstanceSpecResponse>
      <requestId>d273a622-50b6-477f-9876-e4ed6845b3eb</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <serverInstanceList>
        <serverInstance>
          <serverInstanceNo>***4299</serverInstanceNo>
            <serverName>test-***</serverName>
            <serverDescription></serverDescription>
            <cpuCount>2</cpuCount>
            <memorySize>4294967296</memorySize>
            <platformType>
              <code>LNX64</code>
              <codeName>Linux 64 Bit</codeName>
            </platformType>
            <loginKeyName>test-***</loginKeyName>
            <publicIpInstanceNo></publicIpInstanceNo>
            <publicIp></publicIp>
          <serverInstanceStatus>
            <code>NSTOP</code>
            <codeName>Server normal stopped state</codeName>
          </serverInstanceStatus>
          <serverInstanceOperation>
            <code>CHNG</code>
            <codeName>Server SPEC CHANGE OP</codeName>
          </serverInstanceOperation>
          <serverInstanceStatusName>changingSpec</serverInstanceStatusName>
          <createDate>2020-08-24T09:41:23+0900</createDate>
          <uptime>2020-08-24T09:44:24+0900</uptime>
          <serverImageProductCode>SW.VSVR.OS.LNX64.CNTOS.0703.B050</serverImageProductCode>
          <serverProductCode>SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G001</serverProductCode>
          <isProtectServerTermination>false</isProtectServerTermination>
          <zoneCode>KR-1</zoneCode>
          <regionCode>KR</regionCode>
          <vpcNo>***04</vpcNo>
          <subnetNo>***43</subnetNo>
          <networkInterfaceNoList>
            <networkInterfaceNo>***87</networkInterfaceNo>
          </networkInterfaceNoList>
          <initScriptNo>***44</initScriptNo>
          <serverInstanceType>
            <code>STAND</code>
            <codeName>Standard</codeName>
          </serverInstanceType>
          <baseBlockStorageDiskType>
            <code>NET</code>
            <codeName>Network Storage</codeName>
          </baseBlockStorageDiskType>
          <baseBlockStorageDiskDetailType>
            <code>SSD</code>
            <codeName>SSD</codeName>
          </baseBlockStorageDiskDetailType>
          <placementGroupNo>***61</placementGroupNo>
          <placementGroupName>test-***</placementGroupName>
        </serverInstance>
      </serverInstanceList>
    </changeServerInstanceSpecResponse>
    

    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.