MENU
      createServerImageFromSnapshot

        createServerImageFromSnapshot


        Article summary

        Available in VPC

        Overview

        Creates My server image using snapshot.

        Caution

        Only KVM snapshot is supported.

        Requests

        Request parameters

        Parameter nameRequirement statusTypeRestrictionsDescription
        regionCodeNoString- Region code
        Decides the Region where the server image list is to be viewed
        regionCode can be obtained through the getRegionList action
        Default: select the first Region shown in the getRegionList search results
        serverImageNameYesStringMin : 3, Max : 30
        Only English letters, numbers, and the special character "-" can be used. It must start with an English letter
        It must end with an English letter or number
        - Server image name
        serverImageDescriptionNoStringMin : 0, Max : 1000 Bytes- Description of the server image to be created
        blockStorageList.N.orderYesIntegerMin : 0, Max : 20- Order of storages
        Choose the order of storages to be assigned to the server image to be created
        At least 1 primary storage is required
        Enter 0 to set as the default storage
        Up to 21 storages can be assigned
        blockStorageList.N.snapshotInstanceNoYesString- Storage snapshot instance number
        Choose the snapshot instance in which a server image is to be created
        snapshotInstanceNo can be obtained through the getBlockStorageSnapshotInstanceList action
        blockStorageList.N.blockStorageSizeConditionalInteger- Storage size (GB)
        Choose the storage size to create (GB)
        If the snapshot has been specified, it must be equal to or greater than the snapshot size.
        For more information on the restrictions for the size by volume type, see the user guide
        Compute > Server > VPC > Using Server > Server > Block Storage > Block Storage overview > Block Storage overview
        blockStorageList.N.blockStorageVolumeTypeCodeConditionalString- Storage type
        Choose the storage type to create
        The default storage cannot be changed.
        Options : CB1 | FB1
        Between the storage snapshot instance number (snapshotInstanceNo) and the storage type member (blockStorageVolumeTypeCode), 1 must be entered
        blockStorageList.N.emptyBlockStorageConditionalBoolean- Whether to create a new storage
        Creates a new storage without creating a storage from a snapshot.
        The default storage cannot be changed.
        Options : true | false
        When false, the storage snapshot instance number (snapshotInstanceNo) must be entered
        responseFormatTypeNoString- Format type of responses
        Options : xml | json
        Default : xml

        Responses

        Response bodies

        Examples

        Request examples

        GET {API_URL}/createServerImageWithSnapshot
        ?regionCode=KR
        &serverImageName=test-***
        &blockStorageList.1.order=0
        &blockStorageList.1.snapshotInstanceNo=1111
        HTTP

        Response examples

        <getServerImageListResponse>
          <requestId></requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <totalRows>1</totalRows>
          <serverImageList>
            <serverImage>
              <serverImageNo>***5847</serverImageNo>
              <serverImageName>test-***</serverImageName>
              <serverImageDescription></serverImageDescription>
              <serverImageType>
                <code>NCP</code>
                <codeName>NCP Server Image</codeName>
              </serverImageType>
              <hypervisorType>
                <code>XEN</code>
                <codeName>XEN</codeName>
              </hypervisorType>
              <cpuArchitectureType>
                <code>X86_64</code>
                <codeName>x86 64bit</codeName>
              </cpuArchitectureType>
              <osCategoryType>
                <code>LINUX</code>
                <codeName>LINUX</codeName>
              </osCategoryType>
              <osType>
                <code>CENTOS</code>
                <codeName>CENTOS</codeName>
              </osType>
              <productCode>SW.VSVR.OS.LNX64.CNTOS.0703.B050</productCode>
              <serverImageStatus>
                <code>CREAT</code>
                <codeName>Server created state</codeName>
              </serverImageStatus>
              <serverImageOperation>
                <code>NULL</code>
                <codeName>NULL OP</codeName>
              </serverImageOperation>
              <serverImageStatusName>created</serverImageStatusName>
              <createDate>2020-08-24T10:34:27+0900</createDate>
              <blockStorageMappingList>
                <blockStorageMapping>
                  <order>0</order>
                  <blockStorageSize>53687091200</blockStorageSize>
                  <blockStorageVolumeType>
                    <code>HDD</code>
                    <codeName>HDD</codeName>
                  </blockStorageVolumeType>
                  <isEncryptedVolume>false</isEncryptedVolume>
                </blockStorageMapping>
              </blockStorageMappingList>
              <shareStatus>
                <code>NULL</code>
                <codeName>NSI Share NULL State</codeName>
              </shareStatus>
              <sharedLoginIdList/>
            </serverImage>
          </serverImageList>
        </getServerImageListResponse>
        XML

        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.