createServerImage
- Print
- PDF
createServerImage
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Summary
Create a My server image.
Request
Request parameters
Parameter name | Required | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - 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 | |
serverInstanceNo | Yes | String | - Instance number of source server | |
serverImageName | Yes | String | Min: 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 |
serverImageDescription | No | String | Min: 0, Max: 1000 Bytes | - Description of the server image to be created |
blockStorageList.N.order | No | Integer | Min: 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.snapshotInstanceNo | No | String | - 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.blockStorageSize | Conditional | Integer | - 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.blockStorageVolumeTypeCode | Conditional | String | - 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.noBlockStorage | Conditional | Boolean | - 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.emptyBlockStorage | Conditional | Boolean | - 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 | |
responseFormatType | No | String | - 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?