CreateRootVolumeTemplateFromVolumeBackup
CreateRootVolumeTemplateFromVolumeBackup
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
backupUuidStringRequiredThe UUID of the volume backup.
Body Fields
paramsObjectRequiredRequest body parameter object.
backupStorageUuidStringRequiredThe UUID of the backup storage.
nameStringRequiredThe name of the root volume image.
descriptionStringOptional. The detailed description of the image.
guestOsTypeStringOptional. The type of the guest operating system.
platformStringOptional. The platform type of the guest.
systembooleanOptional. Specify whether to create a system image.
resourceUuidStringOptional. Specify a UUID for the image.
architectureStringOptional.
tagUuidsListOptional. The tag UUIDs.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/images/root-volume-templates/from/volume-template/{backupUuid}
/zstack/v1/images/root-volume-templates/from/volume-template/{backupUuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/images/root-volume-templates/from/volume-template/{backupUuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"backupStorageUuid":"<backupStorageUuid>","name":"<name>","description":"<description>","guestOsType":"<guestOsType>","platform":"<platform>","system":true,"resourceUuid":"<resourceUuid>","architecture":"<architecture>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "e2b2695d55243c2997b5dc6165fffa83", "name": "My Volume Template", "mediaType": "RootVolumeTemplate", "platform": "Linux", "format": "qcow2", "backupStorageRefs": [ { "id": 0.0, "imageUuid": "e2b2695d55243c2997b5dc6165fffa83", "backupStorageUuid": "4ed18086e5593b86932436d02f575213", "installPath": "zstore://centos/0cd599ec519249489475112a058bb93a", "status": "Ready" } ] } }Change History
This API has no change history records yet.
