createServerImage
    • PDF

    createServerImage

    • PDF

    Article summary

    Available in VPC

    Summary

    Create a My server image.

    Request

    Request parameters

    Parameter nameRequiredTypeRestrictionsDescription
    regionCodeNoString- Region code
    Region in which the server image list will be viewed
    regionCode can be obtained through the getRegionList action
    Default: Select the first Region of the getRegionList query result
    serverInstanceNoYesString- Instance number of source server
    serverImageNameYesStringMin: 3, Max: 30
    Only English letters, numbers, and special character "-" can be used, and this 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.orderNoIntegerMin: 1, Max: 20- Block storage order
    Determine the order in which storage will be allocated to the server image to create
    At least one primary storage exists
    Up to 21 storage units can be allocated
    blockStorageList.N.snapshotInstanceNoNoString- Storage snapshot instance number
    Determine the snapshot instance from which to create the server image
    snapshotInstanceNo can be obtained through the getBlockStorageSnapshotInstanceList action
    blockStorageList.N.blockStorageSizeConditionalInteger- Storage size (GB)
    Determine the size of storage to create (GB)
    If a snapshot is specified, it must be greater than or equal to the snapshot size
    See the user guide for size constraints for each volume type
    Compute > Server > VPC > Using Server > Server > Block Storage > Block Storage overview > Block Storage overview
    blockStorageList.N.blockStorageVolumeTypeCodeConditionalString- Storage type
    Determine the type of storage to create
    Default storage can't be changed
    Options: CB1 | FB1
    Must enter either the storage snapshot instance number (snapshotInstanceNo) and the storage type (blockStorageVolumeTypeCode)
    blockStorageList.N.noBlockStorageConditionalBoolean- Whether to exclude storage
    Determine whether to exclude storage
    Default storage can't be changed
    Options: true | false
    If false, the storage snapshot instance number (snapshotInstanceNo) must be entered
    blockStorageList.N.emptyBlockStorageConditionalBoolean- Whether to create new storage
    Create new storage without creating storage from a snapshot
    Default storage can't be changed
    Options: true | false
    If false, the storage snapshot instance number (snapshotInstanceNo) must be entered
    responseFormatTypeNoString- Response result format type
    Options: XML | JSON
    Default: XML

    Response

    Response body

    Examples

    Request example

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

    Response example

    <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>
    

    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.