Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

17.3.2. 创建新模板子版本

创建新模板子版本需要新模板的 namevm 元素,以及新模板版本的 base_templateversion_name 元素。base_template version _name 元素必须在 template 部分中包含的版本部分指定。使用 id 属性或 name 元素识别 vm

例 17.3. 从模板创建模板子版本

POST /ovirt-engine/api/templates HTTP/1.1
Accept: application/xml
Content-type: application/xml

<template>
  <name>template1_001</name>
  <vm id="00000000-0000-0000-0000-000000000000"/>
  <version>
    <base_template id="00000000-0000-0000-0000-000000000000"/>
    <version_name>"template1_001"</version_name>
  </version>
</template>